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

learn more… | top users | synonyms (1)

0
votes
1answer
33 views

Get custom posts with certain ids in a custom loop using a shortcode

So I'm using custom loop and shortcode to insert it in any page. Like this: function register_custom_shortcode($atts){ extract(shortcode_atts(array( 'ids' => '', // this is what I ...
0
votes
2answers
49 views

How to query for posts (in hierarchical custom post type) that have children?

I'm trying to figure out how to query for posts in my hierarchical custom post type, presumably using WP_Query that have child posts. I can get all pages that don't have children by setting ...
0
votes
1answer
38 views

custom taxonomy listing returns no posts

I had a issue with a custom taxonomy and a custom post type using the same url and that is now fixed but it has created another bug. not showing the posts tagged with the custom taxonomy. my url i am ...
2
votes
0answers
103 views

Custom media upload content for inserting custom post shortcode

I’m working on a plugin that creates custom post type “portfolio” along with shortcode to insert in any page or post. The shortcode is: [portfolio option1=“1” option2=“0” option3=“1” ] And it works ...
0
votes
1answer
28 views

Change Custom Post Type singular_name through function/filter

I'm working on e-commerce site using woocommerce plugin. My client will be selling tickets online. woocommerce plugin creates custom post type "Product". I want to change this cpt singular_name to ...
0
votes
1answer
35 views

Custom Taxonomy with Custom Post Type Finds No Posts

I've created a custom post type named mfg_ppn and a custom taxonomy called mfg_pp, and they are referenced as $this->cpt_promotion_newsand $this->cpt_promotionin case you were wondering about ...
0
votes
1answer
18 views

I cant access custom taxonomy page listing

I had a issue with a custom taxonomy and a custom post type using the same url. my url i am using for my post type is /news and then i have a taxonomy which i need to have /news/cars I followed this ...
6
votes
4answers
143 views

Are custom post types lost when the theme is changed?

I am about to begin work on a custom WordPress theme and I want to know how careful I have to be about custom posts. Suppose I create a WordPress theme that registers several custom post types. To ...
0
votes
0answers
45 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
35 views

re-register custom post type with custom capabilities

I have created custom post type as below. register_post_type( 'connector', array( 'labels' => array( 'name' => __( 'Connectors' ), 'singular_name' => __( ...
0
votes
1answer
25 views

Dynamically create/remove terms in taxonomy when custom post type is published/trashed

Am struggling a bit with creating & removing terms based on when a custom post type is published and trashed. Ideally, I would like to create a new term in my custom taxonomy when a custom post ...
0
votes
0answers
43 views

Custom Post Type Child Pages

I'm getting a 404 page when viewing child-pages of a custom post type. Right now I have a pages (let's call it 'Books') that displays every 'book', and in the menu have other pages listed under Books ...
0
votes
1answer
16 views

Change the properties of a custom post type after it's been registered?

The specific use case is that I have a CPT added through a plugin, and I'd like it to be hierarchical, but the post type options are hardcoded into the plugin. Is it possible to change the properties ...
0
votes
1answer
24 views

Wordpress monthly archive links result in 404

When I use the archive widget in a sidebar, it creates the normal monthly post archive listing like the following: February 2014 January 2014 October 2013 and so on. Whenever I click on these ...
0
votes
1answer
16 views

Custom post type using standard post categories results in 404 when viewing /cpt/category

The CPT has been registered fine, with the name 'qna' and slug 'advice'. Viewing domain.com/advice correctly displays the archive-qna.php template. Viewing domain.com/advice/custom-post-title also ...
0
votes
1answer
17 views

Ignores post_type when no results

I have a custom searchbox that only searches a particular custom post type. On the results page I have modified seacrh.php to display the results slightly differently. Mainly the title is different. ...
0
votes
1answer
61 views

Change custom post type slug from plugin options

I'd like to give users the option to change a custom post type slug in my plugin. Using this answer, I'm able to hardcode it into a function: Redeclare/Change Slug of a Plugin's Custom Post Type ...
0
votes
1answer
96 views

how to get posts by custom post type then display Custom fields?

I have custom posts types for Recipes, and within that I have set up Advanced Custom Fields (from the plugin.) Within, that custom post type, I have several categories. Two questions: 1.) How do I ...
0
votes
1answer
40 views

Custom Post Type and Breadcrumbs Conflict

I have a custom post type. It seems the breadcrumbs have an extra space for a parent page (which does not exist) inserted. You can see this in the image I attached. What is happening with theis ...
3
votes
1answer
53 views

Reslug a Custom Post Type

I built a plugin for wordpress with custom post types and somewhere along the line I realized that I had to rebuild the way slugs are generated. Originally, I had the cpt making default slugs like ...
0
votes
2answers
32 views

Is it possible to load a different sidebar in single.php based on a meta_query filter?

I have a custom post type 'speakers' and I have a checkbox custom field (meta_query) to separate my Conference speakers from my Workshop speakers. I can filter my speakers with this meta_query and ...
0
votes
1answer
39 views

Display and register custom categories for custom post types

Ok here we go. I have 2 different custom post types. The first is called 'portfolio', the second one 'games'. All the game reviews I write are 'games' posts. To have a better overview I created ...
-1
votes
1answer
21 views

How do I include shortcode of widget in HTML code of page? [duplicate]

I am preparing a custom post type that shall allow the user to fill out a profile. Part of this profile will be a chart. For the chart I found a great widget, Wordpress Charts, and it works with ...
0
votes
0answers
58 views

Function that get ACF fields value before saving

Rewrited question: There is a similar question HERE but I don't know how to combine it with my code. I have a function that relay on acf checkbox field. It is working fine but I have to update the ...
0
votes
0answers
19 views

custom post type affecting all categories

I have a custom post type (service_provider) that has 'taxonomies' => array( 'category', 'post_tag' ) The truoble it is affecting all categories. When I look at the categories and ...
0
votes
1answer
50 views

Show custom post type filtered by category

I would like to have a custom post type which contain several sliders for showing in each category page (exact category.php), one for each as planned. All sliders were assigned to related category. ...
0
votes
1answer
58 views

Custom Post Type Pagination for Bones Theme [duplicate]

I am trying to implement pagination to my custom post type and I am using the bones theme framework as well as their function they provide for pagination. Here is my code $paged = ...
0
votes
0answers
24 views

Deep Nested Custom Rewrite and Custom Taxonomy

I'm trying to get my custom taxonomy to nest deep categories, and then also pull up the post. Each post always needs to be three categories deep: example.com/thinger/cat_1/cat_2/cat_3/post_name_here ...
0
votes
3answers
196 views

How to have permalink like domain.com/term/postname?

I'm trying without success to have a URL structure like domain.com/term/postname, but I just get 404 for all non-CPT pages. function add_video_post_type() { $labels = array( 'name' ...
0
votes
1answer
22 views

How to add terms (without deleting others)

I have a form on my site that allows signed in users tag products from the front-end of the site in a basic form. I am using Woocommerce as the commerce platform. Woocommerce uses Custom Post Types ...
0
votes
0answers
43 views

how to override menu widget?

I would like to customize the menu widget in sense to add some classes which would make it responsive. How do I override the default widget for menus? I use a custom template which supports bootstrap ...
0
votes
2answers
60 views

Custom taxonomy archive page not working

I have a custom post type, course with an associated custom taxonomy curriculum-area. On the permalink domain.com/course/, a list of all courses is shown as expected. However, on the permalink ...
0
votes
1answer
14 views

Forms with multiple element types using custom post types

I am building a forms component and am looking for the following functionality. Each form would have multiple questions and multiple question types ( like text boxes, radio buttons, selection drop ...
0
votes
1answer
17 views

Adding multiple real estate properties to back end

Client has a property management site. He wants clients to signup and enter rental each property into the system, with photos as well. These properties entries will not be accessible to public, but ...
0
votes
0answers
149 views

Custom Post Types vs. Advanced Custom Fields (with Repeater Field add-on)

My goal is to give end users on my projects the maximum amount of control without making them work with any code. I've been using Advanced Custom Fields ("ACF") along with the Repeater Field add-on ...
0
votes
1answer
111 views

How to use wp query posts with current post meta value in text widget

I would like to query information in my sidebar text widget. I added the function. The php query working. (see the code below) I have single posts with wine tastings. I would like to show in right ...
1
vote
1answer
26 views

Posts are duplicating on wp_post_update

I have stucked in writing a simple function that on certain page update refresh all posts in a custom post type. Here is my code (based on this): add_action('save_post', 'bulk_refresh'); function ...
0
votes
3answers
97 views

ACF: post query, hide duplicate values

I'm querying an ACF field, and displaying all the results on the front-end like so— PHP: <ul class="category-menu-items"> <?php // args ...
0
votes
1answer
42 views

How can I implement jQuery plugin correctly with my CPT?

I've tried making an area for client testimonials on my site but I'm having troubles with the jQuery plugin Unslider, which I've implemented. Here is the live site. - The slider is located in the ...
0
votes
1answer
36 views

post_tag tanonomy with custom post type

I'm looking all over google but doesn't find the way to do it. i've declared a custom post type (let's say 'job') with a custom hierarchical taxonomy ('activities'). I would also like to assign ...
1
vote
0answers
47 views

How can I register a hook for all Custom Post Types that are published?

I'm developing a plugin. I want that when every Custom Post Type is published, a hook is called (where I send an email notification to the administrator). I know I can use: ...
0
votes
0answers
31 views

how to show a custom post as a category [on hold]

Is it possible to show a CPT as a category. To be more precise here is my example, I have created a CPT called vendor and it is having own taxonomy. Eg: Vendor1 with books as category In ...
0
votes
0answers
12 views

Trouble with archive-posttype.php and single-posttype.php [duplicate]

I cant seen to get a single page for a custom post type to work. Ive tried both archive-transaction.php (transaction is the post type) and single-transaction.php and both give me a 404 when I try to ...
0
votes
1answer
20 views

How can I pull information from my loop and divide them seperately?

I've created a Custom Post Type that I'm trying to implement into a CSS slider. To do this I've created a custom template and added counters to get unique ID's for every new post that get's pulled. ...
0
votes
1answer
42 views

How to include custom post type posts on a page?

I need help adding a Portfolio page to one of my main Pages. I don't know what information is needed, so I'll just throw in some of the important stuff. Basically I have my main menu, (Welcome, ...
0
votes
0answers
39 views

Custom post type with hierarchical taxonomy url structure

Who can help me to reach second permalink structure of my wordpess website: http://www.somesite.com/custom-post-type/some-tax/some-sub-tax/some-sub-tax/post-name/ ...
0
votes
0answers
23 views

get_edit_post_link returning incorrect post id - why?

I have an array of post-ids, something like: Array ( [0] => 3164 [1] => 3174 [2] => 3176 [3] => 3220 [4] => 3230 [5] => 3232 ) I'm trying to fetch the post-edit-link for a custom ...
2
votes
2answers
196 views

Resolve a custom post type name vs. page permalink conflict (same slug)

I have a custom post type called "visningshus", and also a Page with that slug. This is as it should (must) be. Currently, "http://my-site.com/visningshus" lists all posts of that type. I want to ...
0
votes
0answers
40 views

400 Bad Request on Custom Post Type Rewrite

I'm doing some rewriting of the url for a taxonomy and custom post type based on some code I found on here. However on my custom post type archive url I'm getting a 400 Bad Request. I honestly just ...
0
votes
1answer
41 views

category page template for custom post type

I want to create a template for category page for custom post type. I have tried with category-my-campcat.php and taxonomy-my-campcat.php. But when I click on category then it redirect to ...