condition for specific pages

The easiest way to do it would be: if ( is_category (‘4’) ) { echo ‘<a class=”btn” href=””>Enquire</a>’; } else { echo ‘<a class=”btn” href=””>Calendly link</a>’; } Obviously you would change “4” to whatever the specific category number is. Also, the WordPress template hierarchy could be helpful if you have add’l changes: https://developer.wordpress.org/themes/basics/template-hierarchy/#category If you … Read more

duplicating page templates

When you duplicated the template, I assume that you gave the template file a new file name, and placed it in the same directory as the source. And that you changed the “Template Name” in the duplicated file. And then made changes to the new template file to change the code on the button to … Read more

how to create a page that shows all of multiple category posts on a single page

I was seeing nothing in between the header&footer because I did not actually display the posts in my custom query, which can be done using template tags like the_title() and the_content(). More details here: https://developer.wordpress.org/themes/basics/the-loop/ But then I found out that I could simply use the cat parameter in the URL to view posts in … Read more