Custom Taxonomy Page not working
I have created custom post type "directory" and registered custom taxonomy "directory-category". But unable to access taxonomy page "taxonomy-directory-category.php". Getting "Error 404 – Not Found"...
View Articlewordpress custom menu with page thumbnail
I am trying to get a menu with few links, and show their/link/page featured image. following is my code for functions.php. function register_my_menus() { register_nav_menus( array( 'main-menu' =>...
View ArticleWORDPRESS: Displaying posts from a category within a custom taxonomy, using...
Hopefully one of you can help me out. I have created a custom post type called FAQs, these need to be split up into categories. I created the a custom taxonomy and 3 categories within that. What Im...
View ArticleCustom post type/taxonomy URL structure
I've had a quick scan through similar questions, but most don't seem to answer my question really. I have a custom post type called, Products. Within there, I have taxonomies such as Room Type,...
View ArticleHow loop trough Custom Post Types and get their content in one page
I have some task which try to solve may be not in smartest way, but so far I got only this idea. I have 5 custom post types. In each of this – one post. Want these posts loop and appear on my index.php...
View ArticleWordPress PHP shortcode, get_the_content by id won't display custom post type...
Currently working on a project where I want to display employees' business cards by a shortcode, for instance [person id="1"] or [person name="bob"]. I've created a seperate post type for employees,...
View Articlewon't overlap img with z-index
I have trouble getting my div to overlap the next div using z-index. The main purpose of this function will be the orange box containing a introduction of the person on the picture on the left of the...
View Articlewordpress custom post type category slug in url
I have custom post type (portfolio) with two different categories, then I have 2 pages showing posts from each of both categories. The url when I call the page is something like mysite.com/pagename...
View ArticleHow to use a custom post type as a taxonomy
I have a custom post type for adding books and a custom post type for adding reviews and I want when I add a review to associate it with a specific book. I don't know what is the best way to do this. I...
View ArticleMake default page the parent page of a custom taxonomy archive page
I was wondering if it's possible to use a default page I've created in my WordPress dashboard as a parent to my custom post types'. My default page is: 'www.example.com/about' My custom post type is:...
View ArticleWordPress: how to display only certain post types on page?
I'm developing a multimedia oriented theme for WordPress. Upon entering the site, the user is supposed to choose to view MUSIC or VIDEO CLIPS side of the website. If he chooses VIDEO CLIPS then only...
View Articleaccess custom post type for styling and querys
I have successfully created a new post type called movies, but in wordpress you access/style your posts inside index.php, page.php but how do I access the new post type movies as I have tried with...
View ArticleHide children posts in loop with custom taxonomy
I have created a custom taxonomy that acts like categories. Im using the following loop to show posts from this taxonomy: $exec_query = new WP_Query( array ( 'post_type' => 'cars', 'car_type' =>...
View ArticleWordPress – Assign Meta Data to Custom Post Type
I have a website which uses a custom post type of Treatments, which we're using the CPT-onomies plugin to link as a taxonomy to other custom post types. We have another post type, Practitioners, which...
View Articlecustom post type loop not working
I am trying to create a custom loop from the metadata I have entered into the posts. <?php $args = array ( 'post_type' => array( 'movies' ), 'order' => 'DESC', 'order_by' => 'get_post_meta(...
View ArticleWordPress Display Posts with pagination of particular three categories
Can anyone please help how to list the posts in wordpress of particular category id for eg. consider (55,37,28) are the category id. I want to display it using pagination. Thank you in advance...
View ArticleWordPress draft & pending posts not showing
I have third party authors and they cannot publish posts – they have to submit them for review and I then review & publish them. The posts are tied together & associated with each other, in a...
View ArticleHow to make WordPress turn my posts into objects of a different class than...
I'd like to create a subclass of WP_Post and add some "model functionality" to it. How can i force WP to create objects of that child class instead of WP_Post itself, when i query for my custom post...
View Articleusing a Custom Post Type in wordpress plugin e-commerce
I'm building an e-commerce site, which got two types of "products". Before adding a plugin for the payment management I've already built two custom post types for my products (with cmb2) The problem is...
View ArticleWordPress Custom Excerpt for Blog Posts
I'm trying to add this custom excerpt to blog posts, so that it grabs the first 35 characters from Posts and makes that the excerpt. However the code works for all Post Types, even custom post types....
View Article