If I do a get_posts() with category set to 1,2 I will get all posts in category 1 OR 2. If i want all posts whit both categories, that...
So basically, what I’m trying to do is to hook a static method of a class to another static method of that same class. Code is here : class...
I’m able to easily include my custom post types into my main loop by making small adjustments with query_posts(), but I’m not sure how I would go about including...
I made a home.php file and called it Blog. It set it to be the Posts page, but I would like to add a title that will be displayed...
I’m trying to unregister a post type from a child theme but I haven’t been able to do so, the code in the funcions.php file on the parent theme...
I just need to say in single.php if post type = x then display y. Else, don’t display it. 3 Answers 3 if( get_post_type() == 'post_type_slug' ) { //do...
I wrote a custom AJAX function in which I have assigned a post type to be a child of another post type. In one function I am looping through...
In WooCommerce admin settings (/wp-admin/admin.php?page=wc-settings) there are several fields to set the store address (street, city, country). How can one retrieve this in a theme’s templates? I wouldn’t want...
I’ve searched far and wide to try and find an answer to my question. I’m hoping I can get help here. Here goes… I’m currently retrieving the terms of...
I would like to turn /{custom-post-type}/{post-name} to /{post-name}, is this possible? If this is not possible, can I change the labels/terminology in Pages or Posts so that they could...