I’d like this feature too. But as an option I can turn on/off on the widget.
here’s what I did —
- copy the wpfp-page-template.php into your theme — not sure if that’s obvious to others. it wasn’t to me.
- Umm… rewrite the template a bit to suit your purposes. for me, it was the following (note I change the query from query_posts to new wp_query and use a custom post type):
if ($favorite_post_ids) {
$favorite_post_ids = array_reverse($favorite_post_ids);
$post_per_page = wpfp_get_option("post_per_page");
// $page = intval(get_query_var('paged')); // I don't need this
$sectors = array(
'post_type' => 'sectors',
'post__in' => $favorite_post_ids,
'posts_per_page'=> $post_per_page,
'orderby' => 'post__in'
);
/*
* Sectors
* ==================================
*/
$sectors_query = new WP_Query( $sectors );
if ( $sectors_query->have_posts() ) { ?>
<h2>Sectors</h2>
<?php
while ( $sectors_query->have_posts() ) {
$sectors_query->the_post(); ?>
<div>
<?php the_post_thumbnail(); ?>
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<?php the_excerpt(); ?>
<p class="btn btn-info btn-xs"><span class="remove-wpfp"><?php echo wpfp_remove_favorite_link(get_the_ID()); ?></span></p>
</div>
<?php } // if $sectors_query
wp_reset_query();
I actually have a bunch of custom post types and, thus a bunch of arguments and new wp queries going on, but hopefully this is helpful and not the wrong way to do it for some reason. I have noticed that I have to click all of my wpfp_link() buttons twice to make things happen. Hopefully that’s not related to this here. I’m about to post my own question about that in a second.