• Resolved eerabbit

    (@eerabbit)


    I’ve edited my theme to have it show both normal posts and book-review posts on the index page. The weird things is if the index has only book-review posts, then the star ratings show up fine, but if there is a mix of normal posts and book-review posts then the star ratings are invisible. The code is there when I view the page source, it just doesn’t display for some reason.

    I’ve been combing through both the plugin code and the theme code but can’t figure out what is causing it.

    https://www.ads-software.com/plugins/book-review-library/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author jazzs3quence

    (@jazzs3quence)

    There’s custom book review code that is added as a filter if you are looking at a book review archive page. If your archive page isn’t a strict book review post type archive, it’s not going to trigger the filter.

    If other book review-specific stuff is showing up and the stars are the only thing that aren’t, it’s possible that this line isn’t being triggered by your archive page: https://github.com/jazzsequence/book-review-library/blob/master/class-book-reviews.php#L323

    …which would, again, be for the same reason. The simplest solution if it’s just the ratings that aren’t showing would be to add an is_page('your-page-slug') check in your functions.php file and enqueue the genericons icon font if you’re on that page.

    Thread Starter eerabbit

    (@eerabbit)

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Ratings don't show on pages with posts and reviews’ is closed to new replies.