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

learn more… | top users | synonyms (1)

-1
votes
1answer
29 views

PHP Button Custom link [closed]

At this part of code of a wp template I want to change the permalink url of the "Book Now" button to custom link example: "www.mywebsite.com" byt_render_field("description clearfix", "", "", ...
0
votes
2answers
23 views

custom post type and custom taxonomy

I have a site with numerous custom post types that are created using a class. I was considering whether it was worth creating a custom taxonomy for each custom post type to offer a way of organizing ...
0
votes
1answer
26 views

Multiple archives for cpt, taxonomies, terms

I have a CPT "corso" I have more taxonomy for this CPT (argomento1, argomento2, ...) I've terms on them. Example: Corsi -argomento1 --mat ---post1 --geometry ---post2 -argomento2 --grammar ...
1
vote
1answer
50 views

Rewrite Wordpress URL to show CPT meta field data

I'm stuck in need of a rewrite rule. I have set up a custom post type for 'Books', each book has a repeatable field (using ACF Pro) for chapters. I have added a query_var for chapter using the code ...
0
votes
1answer
36 views

Loading a template for a URL pattern

I am creating gallery pages for events and csr-events custom post type. Now it has three types of pages: www.example.com/gallery www.example.com/gallery/events www.example.com/gallery/csr-events ...
0
votes
1answer
31 views

Custom Post Type Field Array parsing [closed]

I have a CPT Field named 'course_location' as a checkbox with values. When I use $field = get_field_object('course_location'); '<pre>searchDateArray'; print_r($field); echo '</pre>'; ...
0
votes
0answers
38 views

Retrieving custom post type fields without a post

I have reviewed this question, however I don't think that's good enough for what I want to do. I'm developing a plugin that needs to be aware of different fields available on custom post types, so I ...
-1
votes
1answer
51 views

Automatic category for a Custom Post Type

I've created two new CPTs called 'Movie Reviews' and "Game Reviews". In my website I also have one category called 'Reviews' where you can find two sub-categories: 'Movie Reviews' and 'Game Reviews'. ...
0
votes
1answer
106 views

WPML - Auto Duplicate Post Issue

I'm using WPUF Pro form to submit a custom-post-type vehicle, through frontend. I added a custom function to auto-duplicate post on publish. I notice that when I got the Form in 2nd language (not ...
0
votes
0answers
16 views

multiple_loop of filterable taxonomy_portfolio for CPT

first sorry for my "school-level" english and for possible mistakes (it's the first time on this forum) I have a CPT "corso", I have more taxonomy for this CPT (argomento1, argomento2, ...) and I've ...
0
votes
0answers
14 views

Order get_categories() by the order they show up in the backend

I am using Woocommerce and have 1800 products that are in 18 different categories. The idea is to have a page display these 18 different categories as links to their archives. The problem is I want ...
1
vote
2answers
87 views

Query string parameters from custom fields, inconsistent results

I've got a custom post type called course. Within a course post, I have a number of custom fields, specifically (all AFC select dropdowns): course_or_project, time_to_complete_project, ...
0
votes
1answer
19 views

How can I relate custom post types?

I've got a custom post type of product and one of case study. Each product has a series of related case studies. How in Wordpress can I relate these items? I'm using CMB2 and a custom multiselect ...
1
vote
0answers
60 views

How to make custom taxonomy into drop down select in a custom metabox

I have a custom post type that I am creating custom meta boxes for on the "Add New Post" screen. I would like to remove the default meta boxes for a given custom taxonomy and place it in a drop down ...
0
votes
0answers
21 views

Custom Table for custom post type meta data

I'm looking to store the meta data for a post type in a uniquely named table. You see I have a site with a large amount of custom post types with a large a mount of custom fields. I want to clone ...
0
votes
1answer
26 views

Best way to insert a js script in the header with custom fields and CPT

I'm working on a Custom Post Type that'll function as a landing page. The landing page has several custom fields with meta infromation, theres no problem with that, it works well. But my client wants ...
0
votes
0answers
16 views

Metabox values are empty on POST

I've created a metabox for my custom posttype for a shopping plugin. But right now I have some troubles saving the data. This is my metabox view: function wpt_products_price() { global $post; ...
0
votes
1answer
36 views

Removing all post statuses from a Custom Post Type

I have a custom post type and I would like for it to not use any of the default WordPress post statuses, but instead only use the custom ones I create for it. Is there a way to deregister a post ...
0
votes
1answer
44 views

How to add custom template in plugin?

I want to add a custom template for a custom post ('post_type' => 'matches'). I am writing a plugin.I keep my template in the templates/fp-fixture-template.php file. Here is the function: ...
0
votes
0answers
13 views

Creating a custom form with a repeatable row and conditional showing of fields

Would love some guidance. We tried Advanced Custom Fields (ACF) and hit a snag. Basically in a custom post type, we want to create a repeatable set of items. When an end user adds a repeatable item, ...
1
vote
0answers
31 views

Multiple pages for posts?

maybe this is answered somewhere just i am not able to find it then sorry. Situation is that I need to have different "page for posts" for hierarchical post types. example: CTP: office ...
0
votes
0answers
23 views

Pages as parents of Custom Post Types

I have currently used code to assign my CPTs a parent page. (This is the tutorial I have been using http://www.gravitationalfx.com/how-to-set-a-page-as-the-parent-of-a-wordpress-custom-post-type/) ...
0
votes
1answer
55 views

pagination redirecting from page number url before page requested

I have a CPT called staff. On their single-staff.php pages i have a list of items they are related to. This has become too long so now we want pagination. I can create the page links fine but it ...
0
votes
0answers
32 views

Loop carousel slider in wordpress

Hello i create a custom post type clients to add client image but i was not able to loop all here my code I want this code to loop <div class="item active"> ...
0
votes
0answers
47 views

Making a archive gallery page for a custom post type which already has an archive page

I have created an events custom post type archive by custom date field and completed all related pages successfully. It has : Archive page in the format : http://www.example.com/events/ Archive by ...
0
votes
1answer
27 views

Custom post type as child of page

I am wondering if it's possible to have a page, let's say called 'books' with some listed books. Next to this normal page we create an custom post named 'books' were we collect our books. Nou I ...
0
votes
0answers
38 views

How to create a custom permalink structure for taxonomies

I`m trying to achieve the following structure in urls for CPT`s: website.com/CPT - Lists all - OK website.com/CPT/post-slug - List the CPT with slug - OK website.com/CPT/tags - Lists all tags used ...
0
votes
1answer
41 views

Custom Post Type Archive template not being called

My question is similar to a number of posts on this site, but I haven't found a solution to my specific issue yet. I'm trying to implement an archive for a custom post type, "ttwi_course". I ...
0
votes
2answers
32 views

Variable Products as custom post types

I'm building a site for ordering food online. It's not a shop (visitors will not be able to pay online, just to order for delivery). My initial idea was to define all the food and drink items as ...
0
votes
0answers
47 views

Load More CPT’s with Ajax?

I am using the following tutorial to load the next range of posts. I am however, trying to adapt to use it with Custom Post Types and not having much luck. This is the default code.. function ...
0
votes
0answers
33 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 ...
1
vote
0answers
26 views

Including taxonomy term before post type breaks top level pages

Got a website that has two top level pages called commercial and domestic, and in these pages there is other content that shares a similar format, e.g. I want case studies in both the commercial and ...
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 ...
2
votes
1answer
55 views

Restrict taxonomy dropdown to post type

I have 5 different custom post types and one custom taxonomy. I've been able to get a taxonomy dropdown using <?php wp_dropdown_categories( $args ); ?> but I noticed that I was not able to ...
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/ ...
1
vote
0answers
11 views

custom post type and non-standard gallery

I've got an issue - ive created a cpt with below code: <?php // Register Custom Post type $portfolio = new CPT('portfolio', array( 'supports' => array('title','editor','thumbnail'), ...
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
1answer
22 views

Custom post type and taxonomy cross registration [duplicate]

I intend to set up the following: CPT: job, team-member They share taxonomy: location When I register location, I do this: $args = array( .... 'hierarchical' => false, 'rewrite' ...
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
1answer
50 views

Query Custom Post Types with checkboxes

I have Custom Post Type (Courses) with a field "course-location" that is a checkbox. I would like to filter the listing page with the checked items. The below code is working when I select ONE ...
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
50 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 ...
1
vote
0answers
34 views

Using pre_get_posts to Filter Posts

I'm trying to filter archive_research.php to show only the research with status=current. In functions.php: add_action( 'pre_get_posts', 'only_current' ); function only_current( $query ) { if ( ...
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. ...