Forum Replies Created
-
AuthorPosts
-
dawoodMemberThis reply has been marked as private.
dawoodMemberThis reply has been marked as private.
dawoodMemberThanks Steve that helps!
dawoodMemberThis reply has been marked as private.
dawoodMemberThanks Steve,
we can close this 🙂
dawoodMemberYeah, that would work, I could just do a standard editor in that case… 🙂
I normally use Advanced Custom Fields plugin and there’s an option to add a “Page Link” field, and use that fairly often, so was trying to see how I could replicate that …
dawoodMemberthanks Steve!
Loving Piklist so far, just trying to learn it better!
dawoodMemberthanks for taking the time Steve,
so the $data[‘exercise’]; would be in case there were multiple levels in the array?
dawoodMemberThanks Steve, I got stuck trying to pass the ID variables into the function. I figured since the ID’s were what’s being output I could assign those a variable and then place that inside the get_permalink but it did not work…
dawoodMemberpiklist('field', array( 'type' => 'select' ,'field' => 'dawood' ,'columns' => 12 ,'attributes' => array( 'multiple' => 'multiple' ) ,'choices' => piklist( get_posts( array( 'post_type' => 'post' ,'orderby' => 'post_date' ) ,'objects' ) ,array( 'ID' ,'post_title' ) ) )); ?>`// Gets the 3 Featured boxes
$dawood=get_post_meta($post->ID, ‘dawood’, false);
piklist(get_stylesheet_directory() . ‘/inc/dawood’, array(‘data’ => $dawood, ‘loop’ => ‘data’));
`<?php echo $data; ?>The problem is that I only get the ID numbers and am trying to get the Post_title with the Permalink?
dawoodMemberForgot to add
$exercise= get_post_meta($post->ID, ‘exercise’, true);
vs get_post_meta($post->ID, ‘exercise’, true);Can I close the topics myself?
and why would this
<?php echo $data['exercise']; ?>not work,
but<?php echo $data ?>does?
dawoodMemberFigured it out, used the ID file structure to show fields only for home page.
dawoodMemberI that could work, is there anyway to pull in just the link field for the TINY MCE editor so the user can link to any page in their wp site?
dawoodMemberIt’s for customizing the backend of the website of the website. For the homepage, I want to have a combination title field, text area, image upload. Then for a subpage, I need a different combination of elements to collect data.
dawoodMember$image_ids = get_post_meta(get_the_ID(), ‘my_image’);
print_r($image_ids);
worksand this works too
$image_ids = get_post_meta($post-> ID, ‘my_image’);
print_r($image_ids);how come what’s in the tutorial doesn’t?
-
AuthorPosts