Tag Info

Hot answers tagged

2

There are no methods the_content() or the_title() of your query object. These: $review_query->the_content(); $review_query->the_title(); should just be the_content(); the_title(); If you had debugging enabled you would see an error informing you of this.


2

Yes but not in an easy simple way via the order parameters. I would suggest that you: Maintain a 3rd post meta Whenever you change the first or second, add them together and set the 3rd meta to contain the sum of the new values Order by the 3rd value The alternative is to write your own SQL query from scratch and all the horrors and disadvantages that ...


1

Per the Codex: relation (string) - The logical relationship between each inner taxonomy array when there is more than one. Possible values are 'AND', 'OR'. Do not use with a single inner taxonomy array. So you are on the right track, but your tax_query is wrong. relation is part of the outer tax_query array and not part of the top level query ...


1

I wouldn't use custom page templates merely for changing the layout of the blog posts index. Using page templates for the blog posts index bypasses the core handling for display of the blog posts index (which per the template hierarchy uses either home.php or index.php to render). Edit I never...said that I want to change layout of the blog posts ...



Only top voted, non community-wiki answers of a minimum length are eligible