- This topic has 7 replies, 2 voices, and was last updated 4 years ago by
Steve.
-
AuthorPosts
-
-
January 29, 2018 at 2:00 pm #8708
Sean St. HeartMemberI’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.
-
January 30, 2018 at 5:31 pm #8710
SteveKeymaster@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 structureThe 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
-
January 30, 2018 at 8:30 pm #8711
Sean St. HeartMemberThanks for the help,n it’s much appreciated.
Is it advisable to use the theme approach even with a third-party theme I purchased?
-
January 30, 2018 at 10:37 pm #8712
SteveKeymasterIf 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 >
-
January 31, 2018 at 9:34 pm #8713
Sean St. HeartMemberI’m going to try to go with the plugin approach. I really appreciate the help!
-
February 2, 2018 at 1:43 pm #8716
SteveKeymasterGood luck! Let us know if you need any help
-
February 6, 2018 at 4:58 pm #8731
Sean St. HeartMemberNot 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?
-
February 6, 2018 at 5:24 pm #8734
SteveKeymasterCreating 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 >
-
-
AuthorPosts
- You must be logged in to reply to this topic.