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

learn more… | top users | synonyms (1)

0
votes
0answers
13 views

How to open a bootstrap modal in Wordpress?

I'm making a Bootstrap modal in my site. First, I created 2 custom post type in my functions.php: 1 - Box of Portfolio 2 - Content of Portfolio Modal <?php // PORTFOLIO MODAL ...
-2
votes
0answers
11 views

How to make tab style display of custom posts using wordpress tags [on hold]

I have a custom post type called "document". The "document" custom post type is organised with a non-hierarchical taxonomy called "type". Now, normally i would simply have a page that displays all ...
0
votes
2answers
22 views

How to determine if custom post type showing on archive templates

Is there any way to determine if a particular custom post type will be displayed on default archive pages or search results? e.g. Given a post type named (badly) books, is there a way to tell via ...
-1
votes
1answer
28 views

how insert how many post type in this function?

I have two type post and i want display both in tag. this function i can insert one post type, how insert two post type in this function function post_type_tags_fix($request) { if ( ...
-1
votes
0answers
23 views

Cannot save Meta Data in custom post

I am trying to wrap my head around Wordpress, and am really sturggling to understand how to save custom data. I have tried so many different ways, I have forgotten what I have even tried. // Custom ...
0
votes
1answer
9 views

Load custom posts with same tag as page

I'm using this plugin to add tags for a page: http://wordpress.org/extend/plugins/post-tags-and-categories-for-pages/ And I've added tags support for the custom post: function codex_custom_init() { ...
0
votes
1answer
23 views

Exclude latest post from WP_Query taxonomy term loop

Any help would be greatly appreciated! I have a Custom Post Type 'video', with a taxonomy 'tax-video' and I'm looping through posts in the sub-taxonomy term 't-o-t-w'. I need to exclude the ...
0
votes
0answers
25 views

Can a specific cpt and normal page exist within the same virtual directory?

I've created a cpt of 'channel' (with a slug of 'channels'), and new posts add/display as expected. But an existing normal page at /channels/, which contains a 'we have multiple channels' ...
0
votes
2answers
19 views

Displaying custom posts in categories

I have created a custom post type "brochures" which i am currently displaying with the code below (using ACF to display the brochure file). At the moment this displays all the brochures individually. ...
1
vote
1answer
26 views

If 1st / 2nd / 3rd level custom page?

I have a custom post type that is hierarchical. I have 3 level of pages, I need a way to detect whether I am on the top level, 2nd level or 3rd level. I've looked into this and can only find examples ...
0
votes
0answers
39 views

Get custom post type's fields in a while loop as variables

I'm working on a page that shows the name of a lot of products (custom post type), and when the user clicks on the name he can see some product information. It's something like this: Main page with ...
0
votes
0answers
31 views

How do I modify CPT titles?

New to CPTs, I've an issue with the titles of some I've just created. My blog posts are within /notes/ and so the CPTs have 'with_front' => false' for the slug. But the titles are prepended by ...
0
votes
0answers
22 views

Custom post type's permalink leads to a page not found

I've been working on a custom post type locally and had no problem accessing the page itself, but trying to do it on some domain name always leads me to the same "Page not found" result. I tried ...
0
votes
0answers
14 views

On update, set post status to 'draft'

In my website I have created a custom post type named "Activities". A certain user group is able to add/edit these posts. I'd like to set the post type to "draft" each time a user (not administrator) ...
1
vote
0answers
20 views

How to add New Post On clicking a button?

I have a custom post type name guide_tutorial.As I add new post It creates a button name Add Pointer.On clicking the Add pointer button its open a popup which have details about pointer .Now I want ...
-1
votes
0answers
25 views

Display all authors of custom post type with specific role

I was wondering if someone could help me out. I would like to create an adoptions-page.php template file within my wordpress theme. This page will display all the authors that have the ...
0
votes
0answers
15 views

Not Able to Get Custom Post Type in Single and Single-custom-post-type

I have a custom post type called projectsCPT and I am able to display them on page-projectsCPT.php <?php /* Template Name: Projects */ get_header(); ?> <div class="container" ...
2
votes
1answer
23 views

single-{post_type}.php is not loaded despite flushing rules

I have the following code to define my producto custom type post: add_action('init', 'custom_post_producto'); function custom_post_producto() { $args = array( "label" => ...
0
votes
0answers
21 views

How to hide a post until its prerequisites are complete

I have two custom post types Exercises and Tempo Submissions. For each exercise, I have a field that contains an array of other exercises that are it's prerequisites. I also have an exercise field ...
3
votes
1answer
37 views

WordPress calls archive page instead of Custom Page Template

I have created a custom post type called "Projects". My permalinks settings is postname and I'd like to keep it that way. I created a page template named projects.php (Template Name: Projects) and ...
0
votes
1answer
20 views

Get posts of an specific term of a custom taxonomy

I'm new at Wordpress development and I was wondering (and trying to solve this) for a long time, so maybe you can help me. My WP use a custom post type named Products. And there is a custom taxonomy ...
0
votes
0answers
13 views

Table showing data from posts

I have set up a custom post type, with several custom fields to store individual pieces of data. Is there a way to display the data from the posts in a table? Ideally I'd be able to implement search ...
1
vote
0answers
26 views

has_term or in_category for Custom Post Types

I have property as a custom post type. I want to display a specific message if the property is in the sold category. To do that, I'm using the function below: if ( has_term('sold', 'category')) { ...
4
votes
1answer
50 views

Include post id[s] into WP_Query()

I'm assigning some posts to some users whom are not the author of those posts. Typically private posts are visible only to the post authors. So, if the author has 3 posts, on his logged in edit.php ...
0
votes
1answer
25 views

How to handle single entries of a custom post type?

I have a custom post type called Projects. It contains a text-area "project description" and a repeater image field. I know that I can use the function WP_Query to return an array containing all my ...
1
vote
1answer
24 views

Populate dropdown from one custom post type inside another custom post type

[Solved -> see last comment in this question] In custom post type CPT_A I am saving first_name and last_name via a custom metabox form field (they are not taxonomies): update_post_meta( $post_id, ...
1
vote
1answer
23 views

Can't get order_by meta_value_num to work properly

This query is working ALMOST as intended, but for some reason I can't get it to order by the custom field opl_submission_tempo. That field is set up to be a number, so I'm not sure where I went wrong ...
0
votes
0answers
18 views

Adding Angular JS code snippets to pages?

I need to create a post type where an editor can insert 2 code blocks: one for "live" Angular JS HTML markup, and one for a pretty-printed sample of the code (which may or may not be the same code). ...
1
vote
2answers
65 views

WP_Query return highest number only

I have a custom post type with the fields Exercise and Tempo. Here is an example of how that might look: Exercise 1 - 100 Exercise 2 - 104 Exercise 3 - 96 Exercise 1 - 104 Exercise 2 - 110 Exercise 3 ...
0
votes
1answer
12 views

wp_get_post_terms on custom post type with custom taxonomies returning an empty array

I am trying to get the taxonomy values associated with my custom post types. I have a function which fetches a post ($object)'s taxonomies, then cycles through the taxonomies and gets the values for ...
0
votes
0answers
33 views

Rewrite URL/Slug for a Page using a particular page template using Advanced Custom Fields Post Object

Edited 5/20 -- Rewrote to specify my question: I have a Custom Post Type represented as mysite.com/projects/{project-name}/. I'm trying to set up a rewrite rule for Pages that use a particular page ...
0
votes
0answers
9 views

Display nested taxonomies with current class

I have a Wordpress site with a Products custom post type (I'm not using Woocommerce as it is not an ecommerce site). The custom post type has taxonomies with 2 levels (top-level categories and ...
0
votes
0answers
7 views

Same Permalinks for Custom Post Types and Category Taxonomy

I am trying to figure out how it is possible to use the default WordPress Category taxonomy across my entire WordPress site, including three custom post types that I have defined. I would like to ...
0
votes
1answer
20 views

Show one item per category of a custom post type

I'm having a custom type called portfolio with different categories. I want to display all my categories except one. I only want to show one item per category on my page. I'm been busting my butt on ...
0
votes
0answers
15 views

Having to flush_rewrite_rules() everytime I make custom post type

I keep running into this issue where every time I make a new custom post type, I have to flush_rewrite_rules() for it to have a single.php or I get 404 when I go to view the post. Anyone have an idea ...
3
votes
0answers
20 views

Adding a drag and drop re-ordering from a custom post type default list

I have custom post type named 'slider_to_be_ordered' and has the following arguments enabled: 'supports' => array( 'title', 'page-attributes' ), 'hierarchical' => true, ...
0
votes
0answers
15 views

sub categories and products that are directly assigned to main category not displaying

I have a scenario in which i have a side bar. In side bar all the main categories are displayed. There are also some sub categories that are assigned to main categories. Now i want to display both sub ...
0
votes
0answers
21 views

Create Sub-Pages for Custom Post Type with Advanced Custom Fields

I have a Custom Post Type called "Projects". I have a archive-projects.php that displays all of the projects. Then a single-projects.php to display a single project. Trouble is, I want the display for ...
0
votes
1answer
11 views

How to register rows (resource) from custom table as posts of custom type on-the-fly?

How can i have wordpress create "virtual" pages (or probably better suited: a different custom post type) taken from a DB Query? The table in question could map out one resource (events in my case) ...
0
votes
0answers
18 views

Taxonomies not display the content

I create a custom post and a page to post a specific content. My functions.php: add_action( 'init', 'create_post_fotos' ); function create_post_fotos() { register_post_type( 'Fotos', array( ...
0
votes
0answers
14 views

Transfer custom post nav (prev/next) from one to another theme

I bought two themes and just want to assume a special next/prev post navigation from the first theme in the second theme. I've searched the theme files and found the function, which declares this ...
1
vote
0answers
21 views

Filtering a custom post type by custom taxonomy in archive template

I've seen this question posted in different forms before, but most of those solutions are centered around the admin interface, and I haven't found any answers that apply to the front end. I've got a ...
0
votes
3answers
13 views

Create Custom Post Type as page

I need to save URL's from old site, in options-permalink in admin wordpress i use /blog/%category%/%postname%.html I do it for blog posts. But i don't need to get it for CPT I have created CPT ...
0
votes
1answer
85 views

I have a custom taxonomy assigned to two post types. How do I create URLs for different term archives for each post type?

I am working on a site for a client and am using a plugin that adds an "event" custom post type and an "event-category" taxonomy. I have also attached the "event-category" taxonomy to the default ...
0
votes
0answers
7 views

how to display a sidebar widget based on a dynamic custom field?

I used to manually assign a sidebar to a post based on a custom field using the following code in the sidebar global $wp_query; $postid = $wp_query->post->ID; $sidebar = get_post_meta($postid, ...
0
votes
2answers
49 views

How I can made a custom post type to page templates?

In my site, I created a custom post type called: "Pictures" add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'Pictures', array( 'labels' => ...
0
votes
0answers
26 views

Clone a Post Title and Custom Field to a CPT

I am using Simple Urls Plugin to setup redirects on my blog. I am trying to create redirects automatically upon publishing a post. For example, If i publish a post about StudioPress it will be ...
0
votes
1answer
13 views

get related sub-cat posts on custom post type

I have a custom post type [schools] and a custom tax [location]. Each school is in one location category. I want to display schools nearby in the sidebar. So far I've worked out how to display 5 ...
0
votes
1answer
15 views

Custom post types sorting admin columns nothing found

the code below makes it possible to sort after appointment_start_date column, but if I click on header of the column all appointments disappears (Msg: No Appointments Found). Here is the code: ...
4
votes
1answer
74 views

Multiple custom post types under one admin menu

I'm not sure where to start with this one. I want to have 4 custom post types (Gigs, Venues, Holidays and Potentials) listed under a main heading of Events Manager, but don't want Events Manager to ...