[Resolved] WP-PageNavi/Masonry

Home Forums Support WP-PageNavi/Masonry

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #135874
    stardrive

    Hello Tom,

    Please, I noticed that whenever I enable Masonry for the blog page, the Masonry blog is displayed correctly but WP-PageNavi control does not display. (I am OK with this if this is the way you made it to be).

    Also, when i insert the code, <?php if(function_exists(‘the_ratings’)) { the_ratings(); } ?> , for WP-PostRatings into index.php file, I noticed that the Masonry blog is not displayed correctly.

    Regards,

    Stardrive

    #135948
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    When masonry is enabled, all page navigation is hidden and the More button is displayed to load more posts. You can use CSS to show the page navigation/hide the more button if needed.

    As for the ratings code – it probably has to do with where you’re inserting it into index.php. It most likely shouldn’t go in there – you’ll want to place it in GP Hooks.

    #135982
    stardrive

    Hello Tom,

    I am OK with the page navigation being hidden and the More button being displayed.

    Please, where in GP Hooks should I place the WP-PostRatings code?

    Regards,

    Stardrive

    #136055
    Tom
    Lead Developer
    Lead Developer

    It depends on where you want it. Try out some of the hooks to see the placement.

    #136090
    stardrive

    Thank you.

    I want the post ratings to appear for each post (just below the post meta) in the post archive page

    Regards,

    Stardrive

    #136164
    Tom
    Lead Developer
    Lead Developer

    Try it in the “After Entry Title” hook.

    You can also wrap it in this conditional to target the archives:

    <?php if ( is_archive() ) : ?>
          Stuff in here
    <?php endif; ?>
    #136242
    stardrive

    Hello Tom,

    Thank you so much.

    I placed the code below in the “After Entry Title” hook.
    <?php if ( is_archive() ) : ?>
    <?php if(function_exists(‘the_ratings’)) { the_ratings(); } ?>
    <?php endif; ?>

    The WP-PostRatings is now showing below the Post Title.
    But, initially, it was showing only in the post categories pages; it was not showing in the Blog page. So, I also added this code in the “After Entry Title” hook.
    <?php if( is_home() ):?>
    <?php if(function_exists(‘the_ratings’)) { the_ratings(); } ?>
    <?php endif;?>

    The WP-PostRatings is now showing below the Post Title in both the Blog page and the post categories pages

    Regards,

    Stardrive

    #136278
    Tom
    Lead Developer
    Lead Developer
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.