• Hi,

    In the widget area I’d like to filter Portfolio categories instead of Post categories. When I enter the ID for a portfolio category it returns N/A in the front end. Apparently the widget works only with post categories.

    Is there any way to show Top Scored Rating for portfolio categories instead of post categories?

    Thank you in advance.

    https://wordpress.org/plugins/wp-postratings/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Lester Chan

    (@gamerz)

    Sorry you can’t do that on the widget for now. You might be (not tested) able to do it via PHP code

    <?php get_highest_rated_category(array(1,2,3)); ?>

    Thread Starter webi

    (@webi)

    Where should I put this PHP code? 1,2,3 should be my portfolio category IDs or …?
    Give me more details, please!

    Thread Starter webi

    (@webi)

    I just want to mention that I don’t need rating the pages and post. I need to rate only portfolios, so if there is any permanent change to UPDATE and SELECT only posts and categories from the portfolio in the database it would be great. For example to change database column from ‘cat’ to ‘portfolio_cats’ or something like that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show Ratings for Portfolio Categories ID in the widgets?’ is closed to new replies.