Forum Replies Created
-
AuthorPosts
-
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 >
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
SteveKeymasterI’m still not 100% clear what you are trying to do, but in the Piklist demos we have an example of displaying a user’s profile in a front end form.
SteveKeymasterAnd where is the editor field displaying? On the user page? Post page?
SteveKeymasteryour code is working for me. See screenshot
Attachments:
You must be logged in to view attached files.
SteveKeymasterscopeswork, but we haven’t implemented defining the custom table structure yet.
SteveKeymasterThe built-in demos have tabbed settings You can pull the code from there.
Attachments:
You must be logged in to view attached files.
SteveKeymasterIs the data from EDD already saved to the db? If so, where?
SteveKeymastercopy and paste the array here: https://gist.github.com/
give me the url when done.
SteveKeymasterHi Anthony– The data is field groups is saved to an array.
Try typing this after
$theme_options = get_option('my_theme_settings');:piklist::pre($theme_options);You should see the array. Now you need to loop through it like any other WordPress/PHP array.
Hope that helps.
SteveKeymaster@bimbaim– Usually when a WordPress filter doesn’t show all the content it’s because the original
$post_typeswasn’t passed in the function, like this:function your_function($post_types)January 17, 2018 at 12:31 pm in reply to: File upload field saves ID instead of URL when reordering #8684
SteveKeymaster@riotxoa– Please try out latest beta and let us know if that fixes your issue.
SteveKeymasterThe settings need to match.
Ordering submenus is a little advanced and not within Piklist. You can manipulate the
$submenuglobal >
SteveKeymasterYou can do this with Piklist and wrapping your fields in a standard PHP If-then-else conditional.
-First create another field: HTML field with the value being the URL field. So, if the URL is being saved as post_meta, the
valueof your HTML field will be:'value' => get_post_meta($id, $key, $single)-check if the url field is set
-if YES: show HTML field, hide URL field
-if NO: show URL field, hide HTML fieldThis allows you to have full control how the link, button or whatever you want should look and be styled.
Because Piklist is a full-featured code-based framework, there is usually a solution to most issues. 😉
SteveKeymasterInstead of
options.php, did you meanoptions-general.php? -
AuthorPosts