Forum Replies Created
-
AuthorPosts
-
SteveKeymasterClosing ticket 😉
SteveKeymaster@zanedickens– You can use the piklist_add_part filter. The doc actually has an example for your use case.
SteveKeymaster@jason– I think you mean piklist_add_part. I emailed you this info on July 17.
SteveKeymasterYou’re very welcome!
SteveKeymasterFirst, we need to get the data to save. You should remove
scope => post. This tells Piklist to save the data to the wp_posts table. However, you are setting the field name to “piklist_test__content”, which doesn’t exist on the posts table. The best thing to do 99% of the time is to leave out the scope parameter and let Piklist figure it out automatically.As for the template part we need to tell Piklist where it is located. I suggest using
piklist::pathsto help with this.$piklist_test_addmore = get_post_meta($post->ID, 'piklist_test_addmore', true); // 1. Display the data using the file test_template.php. // 2. Assign your $piklist_test_addmore parameter (from above) to 'data'. // 3. Loop through 'data'. piklist(piklist::$paths['your-plugin-slug'] . '/parts/test_template', array('data' => $piklist_test_addmore, 'loop' => 'data'));Now it should work.
I updated the documentation to be clearer.
Let me know if this works for you.
SteveKeymasterRegistering a Post Type with WordPress or Piklist shouldn’t matter. Piklist just lets you add more configuration options.
Did you flush your permalinks? Visit SETTINGS > PERMALINKS. You don’t even have to save that settings page, just visit it and your permalinks are flushed. This is an issue with the way WordPress registers CPT’s.
SteveKeymaster@marcus– Thank you so much. Really appreciate the note.
SteveKeymasterAwesome! Closing this ticket.
SteveKeymaster@ianmuscat– We added an enhancement to Editors within groups. Download Piklist 0.9.4.6. Let us know if that fixes your issue.
August 1, 2014 at 9:17 am in reply to: How to automatic support all custom post type or custom txonomy #2117
SteveKeymasterGreat. Closing ticket
August 1, 2014 at 9:13 am in reply to: How to automatic support all custom post type or custom txonomy #2115
SteveKeymasterYou can use the piklist_add_part filter. This doc shows you exactly how to do what you want.
SteveKeymasterPlease post your code. This bug has already been fixed.
SteveKeymasterThis is not possible yet, but on our roadmap.
-
AuthorPosts