Custom Post Types extend the WordPress back-end to support additional, non-Post content.

learn more… | top users | synonyms (1)

0
votes
0answers
7 views

Display existing admin list table for custom post type in another location without recreating it

I have two custom post types; Inventory and Jobs. I have customised the columns displayed in the Inventory admin list table (ie. wp-admin/edit.php?post_type=inventory) to display relevant fields Is ...
0
votes
1answer
395 views

Get categories and descriptions from custom post type

I'm trying to pull all of the categories associated with a custom post type within a loop, but I'm not sure how to get it so automatically pulls all of the categories automatically from the associated ...
0
votes
0answers
15 views

Post_title is only updated every other time

I have this piece of code which seems to work every other time, it is very weird. I have made a custom post type, and used the ACF plugin to create a field that now with this piece of code functions ...
0
votes
2answers
703 views

Make custom post type column sortable

My site has two custom types: Auction and Lot. Lots are connected to an Auction via the post_parent field. I added an Auction column to the Lots list in the admin area. function ...
0
votes
1answer
17 views

Control what custom posts a user can see

I've been looking into user roles and it would seem that there are 100 plugins to help me control what a user can edit or publish but they don't get any more specific. We have a custom post type ...
0
votes
0answers
15 views

Hide All Published Posts from edit.php Paged

I am using AIT directory wordpress theme and customizing it. What i did till now is, created a custom post type similar to that came with theme, Now, all things are working correctly except one ...
1
vote
1answer
600 views

Custom Post Types, URL rewrite on multiple CPTs

Re: Custom post types, taxonomies, and permalinks by @TheDeadMechanic The solution above works perfectly, and rewrite is great, but can you advise on how to rewrite for more than one custom post type ...
0
votes
0answers
8 views

User roles: edit_post set but custom post type & posts not editable

I have a custom post type with the capability_type of "post". I then have a new user role with the following set: 'read' => true, 'edit_posts' => true, ...
1
vote
0answers
29 views

A custom post type in another post type

I can't seem to find an answer to the following question. English is not my native language so its sometimes hard to find the right words. I know how to build custom post types but i want to go a ...
0
votes
2answers
651 views

Multiple tag cloud filtering

I am writing a plugin which creates a custom post type and two associated custom taxonomies. The custom post type list/archive page should be filterable by terms in one or both taxonomies i.e not just ...
0
votes
0answers
16 views

Plugin not initialising correctly

I have written a plugin that defines a custom post type, and a custom taxonomy. class Post_Type_Faq { const POST_TYPE = "faq"; private $_meta = array( 'open', ); /** * ...
0
votes
1answer
32 views

Add custom CSS class to custom post type

I created custom post type called 'song' in the installation. I am running on a theme called fabulous When I viewed the author archive page with custom posts, the post are not correctly displayed ...
2
votes
1answer
58 views

How can I get next/ previous post links to order by a filter (by the last word of the title)?

I am trying to use the next/ previous post link functions by Wordpress to move between posts of a custom type based on the surname of a person. The custom type represents a person with a post title ...
0
votes
1answer
640 views

WordPress import not importing custom taxonomy

I've posted this already in the WP Support Forum hoping to have more luck here. I'm trying to import a custom post type from one blog to another. (126 posts in the custom post type). I've exported ...
1
vote
0answers
27 views

Use “archive” as slug for custom post type

I need to have a custom post type slug and its associated taxonomy's slug to have value "archive". Any other value is ok, I've tested it, so there is no problem with the code per se. I guess the path ...
2
votes
2answers
625 views

How to create archive page for taxonomy terms within custom post type

I am needing to create an archive page custom taxonomy terms that are within a custom post type. It's set up as CPT > Custom Taxonomy > Taxonomy Terms. I have a custom post type called "Projects," ...
0
votes
1answer
19 views

Filter Content on all Post Types

I had this idea to introduce a 'post type footer' using Advanced Custom Fields so that my users could set up common, reusable messages or calls to action and have them appear after the content of a ...
0
votes
1answer
13 views

How to enable the user to add value through the admin panel?

please help me! I have custom posts type 'gallery'. In my custom post type i have custom fields. I added them through the file functions.php. How to enable the user to add value through the admin ...
0
votes
0answers
19 views

include custom fields in search sql query

here is my sql query: add_filter( 'posts_where', 'title_filter', 100000, 2 ); function title_filter($where, &$wp_query){ global $wpdb; if(isset($_GET['s'])){ ...
0
votes
2answers
701 views

Custom Post Type Permalink Page Not Found

I've been wasting hours and hours trying to solve a permalink issue with custom post types. It keeps returning page not found (404). When I use the default permalinks, it works, but when I switch to ...
1
vote
2answers
2k views

Include taxonomy slug in url?

I have the following custom post-type and custom taxonomy setup: add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'system', array( ...
-2
votes
2answers
67 views

How to get Custom post type by related category ID

I have created a custom post types in function.php file. I has created 4 categories on Service menu section, aa, bb, cc and dd, I try to get a latest 5 post for specific category but I can archive ...
0
votes
2answers
849 views

Post Type => Any conundrum

I have a number of regular posts and pages in a regular category called "Featured". I have also installed a plugin called "Event Organizer" that creates its own custom post type called "Event" and has ...
4
votes
2answers
2k views

Correctly delete posts with meta and attachments [duplicate]

I am having an overview of custom post types. These have custom tax and also an attachment. In my overview I need to provide links to delete the entries. With that I also need to delete the ...
4
votes
1answer
2k views

How to order adjacent posts (prev / next) by custom field value?

I am using the More Fields and More Types plugins to create a custom post type called product. This custom type is based on the Post type. One of the fields is named lot which is an integer ...
2
votes
1answer
783 views

Using custom post types in submenu + custom title

I'm planning to use a couple of custom post types for a plugin of mine. The whole plugin should reside under 1 toplevel menu item. Thus I would prefer a menu structure like so: Dashboard Posts [...] ...
0
votes
0answers
66 views

Get month and day from a Date Picker custom field

I've got a custom field called fecha_del_evento from which I want to obtain the day and the month in different formats; day in numbers, and month with the 3 first letters. The code I'm using is a ...
0
votes
1answer
385 views

How to redirect wp-admin/index.php to a custom post type?

I want to redirect my index.php on the admin side to a custom post type. When I go to mysite.com/wp-admin, it must show a custom post type and not the dashboard. How can I do this?
0
votes
1answer
560 views

Display custom post type with shortcode

I have made a custom post type for my WordPress Theme and a page where the custom post types are displayed. But does anyone know how to make a shortcode that displays posts of a custom post type?
0
votes
3answers
2k views

Getting Bootstrap accordion working in Wordpress loop with custom post type (collapsing issue)

First off I am well aware that there is a plugin but I am NOT talking about the BS Short code plugin. I am talking about the actual bootstrap accordion. So here is what I am trying to accomplish, I am ...
7
votes
3answers
17k views

Can I assign a template to a custom post type?

can I assign a template file to custom post types? I have created a custom post type called items, and I would like to assign templates to the items like you can do with pages.
0
votes
1answer
28 views

Loop posts in a table ordered by a custom field value

I'm trying to generate a table for a custom post type events, in which I have a few custom fields, one of these is the date. I want to display the posts in the table and order them by the Date value. ...
1
vote
1answer
72 views

Archive slider for CPT

I have a custom post type and archive page. I want to be able to use the default twentyfourteen theme slider so that the archive-cpt.php page calls the js and displays a slider only for the CPT. I ...
0
votes
1answer
80 views

CPT archive as home page

I am very new to WP coding. I am working for a University where each faculty has been allocated a CPT. We would like it so that the CPT archive looks the same as the main site. I have created the ...
1
vote
3answers
566 views

Problem excluding category from get_next_post

I have a custom post type called "exhibitions" that uses the native "category" taxonomy. I have three categories: Current, Past, and Featured. Posts get marked either Current or Past and some are also ...
0
votes
1answer
439 views

Set post to draft after set period based on post_modified date

I have a custom post type for the user profile page. My client wants all users to update their profile at least once a month, so we want their profile (custom post) to be automatically set to draft ...
0
votes
0answers
12 views

How can I create a simple directory with ratings?

I have tried several commercial plugins that are far more complex than I need. I am building a site where customers can rate their bank(s). All I need is a post for each bank and an index page to ...
1
vote
4answers
856 views

How to sort list of custom posts to get view like a tree of posts under categories and their children's categories?

I'm new here and my english isn't perfect so I'm sorry for this :) I'm here because I'm workin on site with post list sorted by category and I have problem with sort out my posts in categories and ...
-1
votes
2answers
35 views

Post count for particular term

I am making by wonderful page and I want to query a given custom post type called accommodations and display the number of posts in that given location and this what I have e.g (1,110) Accommodation ...
2
votes
1answer
30 views

How do I create an archive page for standard posts?

I've been tasked with creating a portfolio website for a client who also wants a blog. What I've Done Thus Far: I’ve created a custom post type to separate the portfolio work from the blog posts and ...
12
votes
4answers
5k views

Extending the search context in the admin list post screen

I have a created a custom post type and have attached some custom fields to it. Now I would like for the search that authors can perform on the custom post list screen (in the admin backend) to also ...
0
votes
1answer
19 views

Inserting two categories

I am trying to define two categories together in a post. please tell me where i am doing wrong. 'post_author' => $user_id, 'post_status' => 'pending', ...
0
votes
1answer
1k views

Use menus with anchors

I have a CPT archive page and I want to create a navigation menu which will jump to anchors in the form <a name="post-slug" http="{the permalink goes here}>The CPT Title</a> I have been ...
0
votes
1answer
505 views

WP_Query post at custom position

Lets say I have a custom query which based on two custom post types: $wp_query = new WP_Query(array( 'post_type' => array('post-type-1', 'post-type-2'), 'post_status' => ...
0
votes
4answers
354 views

Metabox does not show in custom post type

I am trying to create a metabox input field in a custom post type and it does not work even if I followed the instructions the best I could. I am not a PHP dev so I guess it could be just a small ...
0
votes
1answer
855 views

Adding post_type to the query via pre_get_posts, with infinite scroll

I'm doing something wrong here. I'm trying to add a custom post type, external-videos, to the main blog query in all instances. It's working in the main blog page for the first load of posts but the ...
0
votes
1answer
460 views

Help integrating Custom post type meta field with custom profile fields

I have a custom post type for "locations" and I need to have "users" log in and be able to pick a location that is within a certain distance from them. I have added some spots to the profile using ...
0
votes
0answers
15 views

Redirect custom post type child term to first post

is it possible to do the following in a functions.php file? I have the following URL structure: hxxp://domain.com/custom-post-type-slug/parent-term-slug/child-term-slug/page-slug/ Directly under ...
0
votes
1answer
5k views

Custom Loop for Custom Post Type

I'm using WP 4.0 and Headway as my theme. I've created a custom post type called 'property' and am looking to create the loop in 2 columns. but I'm not sure what to add to the following code to make ...
1
vote
1answer
411 views

301 redirect for converted post type

I just converted my posts from the default 'post' type to a variety of different custom post types based on what category the post is in. E.G. Posts in the "News" category are now a custom post type ...