kayfaberockstar
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Favorite Posts] Display the full post contentHere’s the original post to what I am referencing above, but I cannot get it to work:
Forum: Plugins
In reply to: [WP Favorite Posts] Display the full post contentI get what you’re saying on the plugin edit, but I’ve made a page template to list the favorites. I was looking for the code that replaces the loop. I’ve found that, finally …
<?php $my_query = new WP_Query('post_type=any&meta_key=wpfp_favorites'); ?>
<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>However, it will show both favorited and unfavorited posts … someone said it had something to do with the meta_value and that I should add an argument to my query …
<?php
$args = array( 'post_type' => 'post', 'meta_key' => 'wpfp_favorites', 'meta_value' => 1 );
$my_query = new WP_Query( $args); ?>Now if I could make these two work together, I might solve my problem, but I guess I don’t understand how to use all of this code as one snippet. Perhaps you could help me make one snippet out of it so it’ll work … LOL. I appreciate your feedback!
Forum: Plugins
In reply to: [WP Favorite Posts] Display the full post contentPer what Simon said above, I see what you’re talking about and where to change it. I’ve created a page template to get my favorites to display and want to show various things, thumbnail, custom fields, etc. … what do I put in the page template to call the favorites/changes to the wpfp-page-template.php?