WordPress.org

Ready to get started?Download WordPress

Forums

Using Custom Field Checkbox (8 posts)

  1. jayo
    Member
    Posted 5 years ago #

    Hey guys, im having trouble figuring out this. I've search the wordpress doucmentation here, but can't figure it out.

    Anyway, Ive created a custom checkbox on my write page, and what I want to do is use that box to call "FEATURED" posts into my sidebar...

    I don't know how to call the posts that are ticked with the "FEATURED" custom field...

    Can anyone help? I hope Im explaing this right.

  2. @mercime
    Volunteer Moderator
    Posted 5 years ago #

  3. jayo
    Member
    Posted 5 years ago #

    Yea i understand how to use it, somewhat. I have it working for other custom fields to put small images, larges images, etc... but not sure how to do it with a checkbox, like only featured the "FEATURED" posts that are ticked...

    I didnt see anything in the link about checkboxes. Did I miss it?

  4. jayo
    Member
    Posted 5 years ago #

    Like say I wanted like

    <php "then the code here to indicated ticked posts" ; query_posts('showposts=9'); if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <a href="<?php the_permalink(); ?>"><?php the_title();?></a>
    <a href="<?php the_permalink();?>"><img src="<?php echo $image; ?>" border="0" alt="<?php the_title();?>" width="70" /></a> 
    
    <?php endwhile; ?>

    How would I do this?

  5. jayo
    Member
    Posted 5 years ago #

    Let me know if Im not explaining right... cuz I cant figure it out, would love some help if anyone would be so kind.

  6. jayo
    Member
    Posted 5 years ago #

    Bumps ... for reply ... please :)

  7. jayo
    Member
    Posted 5 years ago #

    Hey guys, anyone?

  8. jayo
    Member
    Posted 5 years ago #

    If anyone could help, i can pay... let me know.

Topic Closed

This topic has been closed to new replies.

About this Topic