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

learn more… | top users | synonyms (1)

2
votes
1answer
14 views

how to get archive urls with same origin for custom types and terms?

This is perhaps a strange question adn maybe doesn't have answers, but I'll try. custom post type: product custom taxonomy 1: product_category custom term: type1 custom taxonomy 2: product_feature ...
0
votes
2answers
175 views

WP 4.4 upgrade custom post type cannot add new

We have a custom plugin we have created for a customer, it simply configures a custom post type. They upgraded to wp 4.4 today. Now that custom post type is the only one that you cannot add a new ...
0
votes
2answers
32 views

Wordpress custom field sorting, weird behavior: the latest post is at the end

I am using Wordpress with Advanced Custom Fields. I have a custom post called "event" with a custom field "date" (I have added the field through ACF). The date field is formatted in the following way: ...
0
votes
0answers
32 views

Custom Post Type - shows pagination (w/404) or posts_per_page query, not both

I have a custom post type of 'gallery', and I'm using a template for the archive of 'page-student-gallery.php'. My admin settings for posts shown is 5, I'd like it to show 9 on this page, of just ...
0
votes
0answers
61 views

Checking Taxonomy Terms for a Custom Post Type With get_the_terms Not Working

I'm trying to test the term for a post within a wp-query and for-loop. Everything works great however testing the terms via get_the_terms($post->ID, 'category') returns an empty array. $terms = ...
0
votes
1answer
18 views

Delete custom post type metadata without deleting the post in admin area

I'm working on a plugin for a client and they need the ability to attach a couple of PDFs to a post as metadata. The client will need to occasionally update these attachments but without deleting the ...
1
vote
1answer
18 views

Troubles with saving metabox

So I used to have a few metaboxes, which were labelled poorly (meta_1, meta_2) and I went about renaming them to make it easier to understand for maintenance. When I went back to see how other users ...
3
votes
1answer
104 views

importing third party json feed as custom post type [closed]

I have a third party json feed http://feeds.artlogic.net/artworks/artlogiconline/json/ that i need to use to import data in wordpress as a custom post type called "artwork". Are there are handy ...
0
votes
1answer
19 views

Custom post type in theme not appearing

I have a theme on WordPress 4.4 which has this file included in functions.php: <?php function post_types(){ $labels = array( 'name' => __( 'Newsletters'), ...
1
vote
1answer
21 views

Custom post type unintentionally called in every page

A while ago I was following a Tutsplus video tutorial on creating custom post type, and so accordingly I made 2 similar small custom post types for myself. Today I was exploring ways on how can I ...
0
votes
1answer
71 views

Using Wp_Query, Json to add Highcharts series data

I just added a custom Highchart to my wordpress single custom archive page. http://propertywise.malisa.agency/en/district/khlong-toei-2/ Using the following function call from within the Highcharts ...
0
votes
1answer
23 views

Retrieve value of a category's custom field

Using the 'Advanced custom fields' plugin I have added a field to every post category that is called 'color' and it works just fine. Now inside the loop I need to retrieve the value of the 'color' ...
0
votes
0answers
26 views

problem with php script inserting categories in wordpress

I have a php script taking categories from softonic.com, and im trying to insert them into my blog, but I have a few problems. The first of all, is that the categories are not with any link into my ...
0
votes
0answers
20 views

Simple renaming my custom post type set with a plugin doesn't work?

I have created a plugin which activates a custom post type and it all works, but now i wanted to rename the custom post type, say "future-visitors" in stead of "past-visitors". But when i just ...
1
vote
1answer
28 views

Not sure if I should create multiple custom post type [closed]

I am working on a projects that has different tutorials, such as js, html, css and etc. I was initially thinking to create one custom post type for each tutorials, but after some research, I think ...
1
vote
1answer
37 views

Custom Post Type / Two level deep taxonomy (cat. and subcat.) uri problem (error 404)

I've created a CPT named "decoration products"(productos decoración), the problem concerns to it CPT. When for the first time I created "decoration products" CPT, I realized that it needed two level ...
0
votes
2answers
44 views

How do I implement custom fields without using any plugins?

I am trying to create a member directory and using a custom post type members. I am familiar on how to use the ACF plugin but is there any methods on how to associate a custom field for a specific ...
1
vote
0answers
43 views

Cannot Create new Post within Custom Post Type

I have a custom post type registered and when registering I am using... if( !post_type_exists( 'email_template' ) ) { register_post_type( 'email_template', array( ...
0
votes
1answer
68 views

WP REST API - reading custom post type

I have a WP site that runs on WP version 4.3 and using a plugin WP REST API version2-beta9. I have a custom post type animals which has an ACF select field of class which has values like mammals, ...
0
votes
0answers
17 views

can't see categories in appearance-menu-categories

I have a php script that takes categories from softonic.com. It is supposed to insert these categories inside an apps category. It does it with wordpress functions. After launch my script I can see ...
1
vote
1answer
30 views

Calculate all custom field values in the post loop

I have a custom post type named 'ordered_food' and the custom field named 'price', Alhough I can print out all the values, I don't know how to plus and calculate the total price. Because it's already ...
0
votes
0answers
16 views

Edit is changing my custom's post type parent id

I'm having a custom post type (vehicle) and i attached a gallery (post) with image attachments in it. Through my custom frontend form, I set all the post and postmeta details right, as i want to, so ...
0
votes
1answer
33 views

Sort by date, then by time

We have "events" that are specific dates, so the page is set to put the events based on the day of the event first - then they should be sorted by the time the event takes place. The dates are fine ...
0
votes
0answers
19 views

Search by terms of a custom taxonomy

I have a custom post Download and this custom post has a taxonomy naming category. And i have 4 type of category in this category taxonomy.I want to retrive search result according to the 4 terms in ...
0
votes
2answers
67 views

Create custom post type on successful woocommerce order

On the checkout page I have a custom field that gets saved to the order meta data. I need to grab the order meta data and create a custom post type and fill the custom fields with order meta data. ...
0
votes
1answer
35 views

Duplicate “Pages” Item in Admin Menu

I'm registering the following post type: register_post_type( 'post', array( 'hierarchical' => true, 'public' => true ) ); Now I have duplicate "Pages" menu items in WordPress ...
0
votes
0answers
35 views

Custom Post Search

I'm trying to modify search results for my custom post type. I have clarified that the code I am using is returning users and post ID's but no results are displayed. Essentially when a search is ...
1
vote
0answers
22 views

non-hierarchical post type with hierarchical url structure

I want the url for my custom post type to be like : "example.com/parent-custom-post/child-custom-post/grandchild-custom-post/" without setting the hierarchical(for custom post type) to true. I heard ...
0
votes
1answer
30 views

Registered Post Type Isn't Showing in Admin Menu

I have a custom function to make posts hierarchical by registering a post type in my functions.php like this: register_post_type( 'post', array( 'hierarchical' => true ) ); After uploading, ...
0
votes
2answers
48 views

How to create posts (not post template) to be displayed on projects page?

Pages : Home - set as static home page; blog - for blog posts; About ; Contact; Projects; List of templates: front-page.php - for Home page; home.php - for blog page; about.php; contact.php; ...
1
vote
1answer
53 views

Creating multiple page URL without creating the pages in WordPress

I want to create many page URL without actually creating the pages in the WordPress dashboard. And assigned a particular template.
1
vote
1answer
30 views

Filter widget outputs

I've been trying to find a good solution for my problem, but I can't seem to find anything on this topic at all. I've got a custom sidebar, created by using register_sidebar and I've used wordpress's ...
0
votes
1answer
19 views

Use Custom Post Type as Storage Container Without Registering It

I want to, in a sense use a CPT without registering it. The CPT is used for internal settings by a custom plugin. For example: I writing a custom form plugin where the website administrator can ...
0
votes
0answers
23 views

1 Custom Post Type not appearing in admin

I am facing an issue. I've created a function for custom post types. This is my code. function my_cpt(){ $labels = array( 'name' => 'SM & Points Templates', 'add_new' => ...
0
votes
0answers
18 views

Creating the Custom post type inside plugin page?

Is it possible to create the custom post type inside the plugin page same as it appears individually with all of its filters and action button on the plugin page?
0
votes
1answer
7 views

Multisite Global Custom Posts

I have a museum client with a multisite setup with pages that detail the exhibits in their facility. They recently added tablets throughout the museum and want their tablets to display only their ...
0
votes
2answers
57 views

How to Organize and Sort Gallery of Images

I'm working on a website for an artist. He has many images that he would like a user to be able to sort and filter by custom taxonomy. In addition, he would like a user to be able to navigate ...
0
votes
1answer
28 views

Display year value before a set of posts

This is what I am trying to accomplish: I have a page template which displays "case studies" where "case studies" is a custom post type. the page template called: page-case-studies.php I actually ...
1
vote
0answers
8 views

Custom post type template but

I'm looking for the right way to create a template that would render a single instance of my custom post-type. The trick is that this post type should not be reachable directly (I mean a single item ...
0
votes
0answers
30 views

Change sort order when using 'orderby' => 'type'

When doing a wp_query with the following parameters: $arg = array( 'post_type' => array( 'activity', 'publication', 'project', 'course' ), 'order' => 'ASC', 'orderby' => 'type', ...
0
votes
1answer
41 views

admin-ajax.php GET custom-post titles

I can't get the titles of my custom post. this is what i'm doing: //IN functions.php function fluid_scripts() { wp_enqueue_script('lateral-fluid', ...
0
votes
0answers
13 views

Admin list: sort by default by custom column

I created a custom column like this: if( (isset($_GET['post_type'])) AND ($_GET['post_type']=="sales") ) { function inventory_column($columns) { ...
0
votes
1answer
24 views

Custom Permalinks with meta value not working. Why?

The following code is supposed to work, but it does not (no Plugins activated). In the backend the permalinks are correctly shown for the custom post type, but if called in the frontend an incorrect ...
0
votes
0answers
21 views

URL Rewrite Multiple CPT

Basically I am trying to do something simalar to what has been referenced in this thread URL rewrite rules for multiple taxonomies query however it's not working for me. I am using the Types ...
2
votes
4answers
273 views

Custom edit post column - category not showing

I added a custom column to a custom post type: add_filter('manage_posts_columns', 'custom_columns', 10); add_action('manage_posts_custom_column', 'custom_columns_thumb', 10, 2); function ...
0
votes
0answers
30 views

Admin - Dequeue unnecessary scripts/styles

Currently, I'm working on a plugin where I use custom post type. In each post type edit page I've got meta data fields to set advanced functionalities. However, because the interface needs to take ...
0
votes
1answer
28 views

Can the wp_posts table have the same slug (post_name) in multiple statuses (post_status)?

I'm using function get_posts to retrieve a set of post objects that are my custom post type (CPT). I am counting on being able to programmatically flip these posts between status "publish", "pending" ...
0
votes
1answer
21 views

Display Taxonomy Term for CPT on single-CPT.php

I've been having issues with this all morning and need some help. So I made a custom post type called Equipment, then made a custom taxonomy called Equipment Types. On single-equipment.php I can get ...
0
votes
1answer
19 views

same archive template for different custom post

Suppose i have registered five custom post type like this america china nepal norway chile And to template the archive i should use like this inside theme folder isn't it? archive-america.php ...
0
votes
0answers
17 views

Change Wordpress CPT ID into Post Name

I'm using wordpress custom theme contains 3 CPT and for seo purpose I am using yoast seo plugin. For seo purpose I want title and description to look like this. CPT Lyrics - Title - Artist Name ...