WordPress.org

Support

Support » Plugins and Hacks » WP Favorite Posts » [Plugin: WP Favorite Posts] Adding the list of favorite after text

[Plugin: WP Favorite Posts] Adding the list of favorite after text

Viewing 1 replies (of 1 total)
  • It’s been a while since your post but I found a solution.

    In the file wp_favorite_posts.php find the function

    function wpfp_shortcode_func() {
        wpfp_list_favorite_posts();
    }
    add_shortcode('wp-favorite-posts', 'wpfp_shortcode_func');

    starting on line 297 and change it to

    function wpfp_shortcode_func() {
        ob_start();
        wpfp_list_favorite_posts();
        return ob_get_clean();
    }
    add_shortcode('wp-favorite-posts', 'wpfp_shortcode_func');

    I think it would be useful to incorporate this or similar (better?) solution in the core.

    [Please post code or markup snippets between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP Favorite Posts] Adding the list of favorite after text’ is closed to new replies.
Skip to toolbar