Relative Content

Tag Archive for phpwordpresswordpress-theming

WordPress Code to display categories like this

I’m currently struggling with displaying custom taxonomy terms in a WordPress theme, and I can’t seem to get the desired output. I’m using a custom taxonomy called genre, which is attached to a custom post type. The problem is how I need to display the taxonomy terms on a single post page.

is_category() not firing in functions.php

In functions.php I want to enqueue scripts based on what page I’m viewing: home page, single page, etc.
It all seems to work except when I go on a blog category.

Recommended WordPress PHP Template for Google Reviews

Working on a way to import google reviews into our wordpress site WITHOUT a plugin. We need reviews for multiple stores on the same wordpress site so all the freemium plugins are not an option if we want to stay free. Considering the simplicity of the build I refuse to turn this into a monthly subscription when I can just setup a PHP template instead or even pay a developer a one time fee.

Hide events post in WordPress after certain date

I currently have an events section with a heading and upcoming events below that. The events hide after their date passes but when there are no events displayed the heading is still visible. I want the whole section to not be visible when there are no posts but because the WP_Query still recognizes that there are posts the heading is visible. Can you include the is statement to check the event date against the current date with the WP_Qurey?