Forum Replies Created
-
AuthorPosts
-
SteveKeymasterYou can use this tutorial to save the user ID you want.
Then you can get_posts() to display the posts for your user.
SteveKeymaster@martinw– I’m not clear on what you mean by child-data-form. Do you just want to view posts that have a particular user assigned? Not the author, correct?
SteveKeymasterNice! Closing ticket.
SteveKeymaster@martinw– You can create a form with Piklist that is all hidden fields, except your buttons. Then use jQuery to fill in those fields when you click a button.
Does that help?
SteveKeymasternice! Closing ticket.
SteveKeymaster@4michaelcoleman– I don’t think I understand the question. Why are these pages different than the first?
SteveKeymasterDisplaying data is standard WordPress/PHP with Piklist. I would recommend looping through your meta_values and pull the info with get_posts(). Something like this (untested):
$levels = array( 'Platinum' ,'Gold' ,'Silver' ); foreach ($levels as $level) { $args = array( 'meta_key' => 'sponsor_level' ,'meta_value' => $level ); $posts_array = get_posts( $args ); // Display your details here. }
SteveKeymasterI used this code and it seemed to work for me. See screenshot:
piklist('field' , array( 'type' => 'group' ,'label' => __('Event') ,'field' => 'pro_card_events' ,'add_more' => true ,'columns' => 12 ,'template' => 'field' ,'fields' => array( array( 'type' => 'text' ,'field' => 'event_title' ,'label' => __('Event Title') ,'columns' => 12 ) ,array( 'type' => 'datepicker' ,'field' => 'event_date' ,'label' => __('Date') ,'columns' => 6 ) ,array( 'type' => 'text' ,'field' => 'event_time' ,'label' => __('Time') ,'columns' => 6 ) ,array( 'type' => 'editor' ,'field' => 'event_description' ,'label' => __('Description') ,'columns' => 12 ,'template' => 'field' ) ,array( 'type' => 'text' ,'field' => 'event_location' ,'label' => __('Location') ,'columns' => 12 ) ,array( 'type' => 'text' ,'field' => 'event_link' ,'label' => __('Event Link') ,'columns' => 8 ) ,array( 'type' => 'text' ,'field' => 'event_link_text' ,'label' => __('Event Link Text') ,'columns' => 4 ) ) ));Attachments:
You must be logged in to view attached files.
SteveKeymaster@shonnys– Welcome to the Piklist community!
Please try our latest beta. It fixes the issue.
SteveKeymaster@tiberiur– That is some of the nicest things anyone has said about Piklist!
The first step in being a “Piklist Evangelist”, is posting a review on WordPress.org 😉
SteveKeymasterGreat. Looking forward to hearing what you think.
SteveKeymasterBeautiful!
-
AuthorPosts