Viewing 7 reply threads
  • Author
    Posts
    • #8708

      I’m more of an amateur developer, more out of necessity, so forgive me if I do not understand things correctly. I’m working on a project for my nonprofit with no funds to hire a programmer, so I’m trying to learn Piklist – which from a novice perspective seems simple enough to learn. I’m reasonably impressed with what I’ve been able to do in just a few days, but I’m confused about a few things.

      My project involves mostly the creation of custom post types and fields. I already have a theme that I purchased, but it doesn’t output the custom fields I create, which I assume is because I haven’t added to components to display the fields on the frontend. My questions are:

      1) Theme or plugin folder structure?
      Because I’m already using a theme, should I be using the theme or plugin folder structure?

      2) If I go with the plugin structure, what do I need to do to show the fields on the front end using an existing theme? Can I create like a single-custom-post-type.php file in the plugin folder or do I need to modify the theme files as well?

      Any help will be greatly appreciated.

    • #8710
      Steve
      Keymaster

      @charitableh– Welcome to the Piklist community!

      The folder structure is defined by where you want to write your Piklist code:
      In a plugin: user plugin structure
      In your theme: use theme structure

      The easiest is probably the theme.

      Since Piklist does everything the WordPress way, any tutorials you can find on the web that discusses how to display custom fields in your theme will work. Here’s one that looks good >

      Hope that helped

    • #8711

      Thanks for the help,n it’s much appreciated.

      Is it advisable to use the theme approach even with a third-party theme I purchased?

    • #8712
      Steve
      Keymaster

      If you are going to use a theme you purchased, it is always recommended to never modify the original files. Create a child theme instead >

      Or if you want, you can write a WordPress plugin for Piklist >

    • #8713

      I’m going to try to go with the plugin approach. I really appreciate the help!

    • #8716
      Steve
      Keymaster

      Good luck! Let us know if you need any help

    • #8731

      Not having much luck here. I want to create a plugin that other people can use for free, but can’t figure out how to display the custom fields on the front end. Since other people will have different themes I want to avoid dealing with themes and create a template within the plugin. The link you shared isn’ helping, are there other examples of this specific to Piklist?

    • #8734
      Steve
      Keymaster

      Creating a theme template that’s compatible with all themes is not that easy.

      Piklist automatically registers a shortcode when you create a form. That’s the most flexible way to do. Let your users add a shortcode.

      If you want to add a page template from your plugin, then this tutorial looks good >

Viewing 7 reply threads
  • You must be logged in to reply to this topic.