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

learn more… | top users | synonyms (1)

0
votes
0answers
32 views

MetaBox autocomplete field with another custom post type?

I am using the MetaBox.io plugin and creating a post type called "Book" which I am trying to relate to another custom post type called "author". How can I create a custom field for Books that would ...
0
votes
0answers
19 views

Cant edit custom post type in WordPress dashboard

i'm working with a WordPress site developed by someone else , when i login to dashboard and try to edit any custom post type that takes me to blank page for example there is a post type news and when ...
0
votes
0answers
27 views

How can I filter through my custom posts with pagination?

Right now I am successfully filtering my posts with my taxonomy terms with jquery so that when you click on a "brand" or a "type" it shows posts that have that taxonomy. My problem here, however, is ...
0
votes
1answer
60 views

Send notification to the admin when new custom post is submitted

I have a cpt called "auto" and i make a frontend form to create new post with "pending" status. After the post submission i would receive an email with a notification of the new post. function ...
0
votes
0answers
6 views

How do subpages work in Wordpress and are they affected by custom post types vs pages?

I've got a landing page that covers an overview of a company's offerings. There are then subpages that detail different types of offerings (this may be something that the user can add more of). I ...
0
votes
0answers
18 views

Set custom post type's base url in subfolder

I have a custom post type (non-hierarchical), say, "tickets," and usually what WP does with its URLs is this: Single CPT: http://tld.com/tickets/single-entry/ Archive CPT: http://tld.com/tickets/ ...
0
votes
1answer
60 views

How can I output WPAlchemy repeating fields meta values in my page template?

I have a custom post type, Downloads, which contains some custom metaboxes, including a repeating field. I'm able to output the values for all of them in my page template, but I'm not able to output ...
0
votes
0answers
17 views

Custom nav menu current item custom link problem

Because I want to add <span class="dashicons [class]"></span> inside each link of my menu I needed to create a custom made nav menu. I did this by the code below which works great, but ...
0
votes
0answers
29 views

Custom drop down meta box not saving

I'm really struggling with my drop-down meta box. I created a custom post type, and am in the midst of creating shortcodes for recent posts, all posts and now featured posts. I created a custo ...
0
votes
0answers
29 views

Display custom post type with is taxonomy in homepage

I've a custom post type called "books". Inside there're many book that belongs to a custom category (made with taxonomy) selected by user. All of these books, made a carousel for each taxonomy in ...
0
votes
0answers
12 views

Saving sorted CPT with CF

I'm using WP-types to create custom post types and custom fields. Using CPT and CF, I've created photos gallery assigned to Posts. When I'm sorting them by "Wgraj zdjecie" and click save all, it ...
0
votes
0answers
49 views

Infinite scroll only works on Default Permalink

I have a custom post type list that I display on a page template. There are a lot so I decided to put infinite loading. After changing different queries, I at last made it work but only if the ...
0
votes
0answers
23 views

Custom post type doesn't display on admin list

I have a custom post type, list, with 86 posts, none of which show up on the list for its admin page. It just says "List not found". But when I choose "October 2015" from the filter dropdown, all ...
0
votes
0answers
24 views

Can I Use Query_Posts() For Dynamic Filtering?

The Codex page for Query_posts() basically says "don't use query_posts". However, I have tried all of the alternatives they suggest, as well as methods from other sources, and I have had no luck. ...
0
votes
0answers
17 views

Move only new blog posts to sub directory?

Currently my blog posts are not under a sub directory : www.example.com/blogpost1 www.example.com/blogpost2 etc.. Going forward I want all blog posts to be: www.example.com/blog/blogpost3 ...
0
votes
1answer
52 views

Child Theme problems

I have a Premium WordPress theme that I created a child theme on. I can change the regular WordPress php pages and the css on the parent theme inside the child theme with no problems. Inside the ...
0
votes
1answer
66 views

How To Loop Through <li> list with Custom Post Types

Please excuse me for being ignorant. I am currently trying to learn more about PHP and WordPress. This is my first time to post a question on StackExchange. I found a jQuery plugin for a simple ...
0
votes
0answers
19 views

Convert WP publish date to unix time and populate a custom field

I have a custom post type called "Stories" and I am using an RSS to feed to create a new custom post with each entry from the feed. The client needs to be able to add manual "Story" posts too, which ...
0
votes
0answers
18 views

Custom Post Type URL Rewrite

I am looking to create the following URL structure for a post type, /%post_slug%-blah/, and have an archive URL of /blah/. I can create this by doing custom rewrite rules, setting a post_type_link ...
0
votes
0answers
43 views

WooCommerce - Complete Order when an action occurs

I'm having trouble with WooCommerce and Custom Post Type/Custom Fields. I have an application where a new WooCommerce order automatically creates a new post (CPT = "audits"). The post has some custom ...
0
votes
0answers
32 views

Create relationship between two custom post types and use in permalinks?

I have two custom post types defined: Store Product The URL structure for Product is example.com/product/product_title, where product is a static word. How can I add product to the store ...
0
votes
1answer
17 views

Custom post type permalink issue [duplicate]

I already have a 'custom structure' for my 'Posts', e.g. example.com/newsarchive, so my 'Posts' follow: example.com/newsarchive/welcometonovember Now I am expanding and created a new custom post type ...
0
votes
0answers
28 views

Custom user role capabilities for Custom Post Type

I've created a custom user role using WPFront User Role Editor to allow access to only one Custom Post Type (job_listing, job_listings). It works almost great, however, it's not displaying "All Job ...
0
votes
0answers
44 views

Standard WP_Query Returns No Results

Edit: found the problem. The fields I'm trying to filter on are custom fields. They were created with the "Load value based on the post's terms and update the post's terms on save" setting UNchecked. ...
0
votes
0answers
10 views

Custom Search Doesn't FIlter Based on Custom Field

I am trying to search various post types based on a custom field equal to a certain value. However when I do my search, it's ignoring my filter. Here's my code: function ...
0
votes
0answers
18 views

How to retrieve json data from custom json enpoint created from a custom post type

I was able to make a json endpoint with WordPress's rewrite rule API. Here's how: // Add custom rewrite rule function test_rewrite_rule() { add_rewrite_tag( '%movies%', '([^&]+)' ); ...
0
votes
0answers
37 views

Custom Taxonomies in Custom Post Type - slug rewrite is not working

In a plugin, I have created a custom post type 'Movies' and two custom taxonomies 'Genres' and 'Studios'. For the post type, I need the permalink to be 'localhost/movies/movie-name'. So in rewrite ...
0
votes
1answer
29 views

Link Custom Post Type Sidebar to Page/Posts

I registered a new post type "sidebars" so I can create different ones whenever I like. function rh_create_sidebar_post_type() { $labels = array( 'name' => __( 'Sidebars' ), ...
0
votes
0answers
35 views

'exclude' argument is not working with get_posts for a custom post type

I'm trying to use get_posts to get a random list of customPostTypes but I want to exclude some id's. I already try the query with the following options: Current) 'exclude' => array(622, 621) --- ...
0
votes
0answers
17 views

Meta Box not being added in plugin

I am attempting to create a simple oop plugin that registers a few custom post types and then adds meta boxes to that custom post type. It is currently adding the post type but it's not adding the ...
0
votes
1answer
39 views

WP_Query | 'post_type' doesn't work

I'm new to WP theme development and I've an issue. I've created a custom post type 'portfolio' via CPT UI plug-in. Now I want to create a custom query to show all the posts with the post_type = ...
0
votes
1answer
36 views

Creating connections programmatically with common fields on CPT's

I'm trying to create a programmatic connection between two CPT's that have a common field (id_number). For example: CPT "City": post_name:New York id_number:34 CPT "Color": post_name:Red ...
0
votes
0answers
24 views

How to add and clear custom post types and taxonomies in a plugin? Considerations for existing data

How we have to manage the creation / deletion of custom post types and taxonomies in a plugin? For example i write a plugin that creates a new custom post type and an associated custom taxonomy. ...
0
votes
0answers
20 views

Creating custom post type with custom taxonomy and custom fields programatically

I need to create a custom post type. This post type will have a custom taxonomy. Also this post type will have custom fields. I dont want to use any plugins to do it, i want to include the creation ...
0
votes
0answers
34 views

How can I use previous and next posts links for each SET of children in a custom post type?

I have a custom post type set up with the Custom Post Type UI plugin called 'Exhibitions'. There is a parent post for each exhibition (eg: Exhibition 2011, Exhibition 2012) and under each is a number ...
0
votes
0answers
26 views

How to decouple custom post types components from template?

I am in my early stage on learning wp development and tried something "simple". To manage some custom entities in my back-end and try to display them in front-end. So what i did was: Created custom ...
0
votes
0answers
25 views

Multiple custom post type and permalink issue

I have to declare two custom post type in my theme. But when declaring the second post type which is overwriting the permalink of first post type and rendering 404 error page :( Please find my ...
0
votes
0answers
48 views

pagination custom post type reload but show the same

i have a problem when i try to paginate in a table my custom posts types, in the view it appear in the correct form " 1 2 3 Next" but when I click in the number the page reload but not show the other ...
0
votes
1answer
47 views

Custom post type cannot access child page

I have the following custom custom post type, but it does not work. I want it to run with the following URL: example.com/cartoon-series/post-parent/watch/ add_action( 'admin_menu', function() { ...
0
votes
1answer
46 views

Remove current_page_parent nav class from blog index when in CPT

I'm trying to remove current_page_parent class from the blog index menu item (I got a custom page to display all blog posts and it is in the menu) when navigating custom post type archive page and ...
0
votes
0answers
21 views

Need advance search for custom post with 3 custom taxonomy

I need Advanced search form, I have 1 custom post type ('results'), And i have 3 taxonomies for the custom post, 3 taxonomies name is Year, Class, semester. Taxonomy register type is Year = ...
0
votes
0answers
8 views

Filter postypes per user in admin list page CPT

I am using the following to limit my custom post type to just one record per user but how do i limit it per role as well as I still want the admins to be able to add multple players. I not sure if ...
0
votes
1answer
29 views

Custom post order when using OR relation

I have a custom post type named Faculty. They can be any of the type MCT, MLT, or MT. MCT -> A, B MLT -> C, E MT -> C, D I want to list all MLT and MT faculty on a page in order by last ...
0
votes
1answer
17 views

Static front page has page url not site url

I have a custom post type being used as a static page. My site url redirects to www.mysite.com/slug/my-page-title but I want it to stay www.mysite.com
0
votes
0answers
18 views

Filtering custom posts

I have to add functionality to my wordpress site that displays some custom posts. However I need to filter the output based on multiple categories/taxonomies (I dont know whether to use ...
0
votes
0answers
39 views

Change plugin's has_archive = true to false?

When a plugin registers a post type and sets has_archive to true, is there a way to change it to be false? I don't want the plugin's post type to have an archive, but can't figure out how to turn it ...
0
votes
1answer
73 views

Custom Query to display posts with custom field

I am running into an issue with a custom query for displaying my posts and am having no luck on the Wordpress Forum nor the plugin forum I used to create the Custom Post Type. Here is an overview... ...
0
votes
0answers
11 views

Getting seperate dynamic feactured images for seperate templates?

I had written code below for getting the dynamic feactured images into the template page. I have four similiar pages, each one's post id is different and they are written inside a custom post type ...
0
votes
0answers
50 views

Is it possible to group ACF Fields for a custom post type?

I have structure like this: District (taxonomy) --municipality (custom post type) - ACF Group (with fields assocation and contact) I have created a group in Advanced Custom Fields where fields ...
0
votes
1answer
19 views

Using mediaelement to display gallery of audio

Hello there I am building a theme for multimedia services and I need a gallery of audios. I am looking for a way to use the built in mediaelementplayer. It "kind of" works but I have several issues... ...