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

learn more… | top users | synonyms (1)

0
votes
1answer
25 views

redirect old post type url to new structure url

i have one cpt Anime and it has post_type taxonomy with term anime and animation anime(cpt): (site domain)/anime/post title | |-(tax)Anime |-(tax)Animation And my url structure are ...
0
votes
0answers
33 views

How to get all tags of a custom post type by id

simple question, how to get all tags of a custom post type by id? post_type=product. i have tried with http://codex.wordpress.org/Function_Reference/wp_get_post_tags in my post loop and the print_r ...
0
votes
0answers
29 views

How can I add a “fake” parent into the permalink?

I have a custom post type of books and a taxonomy of book-publishers-series. I am trying to do a rewrite so that my urls look like: ...
0
votes
1answer
34 views

Archive page…limiting posts per page

So what I have done is created a custom post type 'testimonials' and set the "has archive" option to "true" and have a PHP template file named "archive-testimonials.php". What I wan't to do is limit ...
0
votes
1answer
26 views

How to display CPT archives?

I have a site where we merged two blogs, one in the normal blog and one in a custom post type. Everything is fine except we cannot get the monthly archives to display for the CPT. We've tried a ...
0
votes
0answers
13 views

wp_dropdown_pages doesn't update the link

I try it, the dropdown pages of my custom post type show up, BUT when I save it the link doesn't update. There is a list of pages, when I choose the page "produce" and save it. It will automatically ...
0
votes
0answers
21 views

Search form to find custom meta box generated data

I have developed an inner theme plugin, which is a custom meta box that inserts some typed in text to the database and then displays in the application. I followed the example found at this link. Now ...
0
votes
0answers
9 views

Fixed values for same post translations

I was recently implementing a custom post type in WordPress, and added WPML so I could translate it's title & content. This post type (city) also has some custom metaboxes (metabox.io) like: ...
0
votes
0answers
19 views

What kind of post type structure do I need to manage a list of ranked skills?

I'm currently creating a portfolio site that requires me to manage a list of skills. I want to manage these skills in a clean overview in the backend. The list of skills consists of two entries per ...
-2
votes
0answers
31 views

Using Custom Taxonomies with Custom Post Type UI [closed]

I have a site that is basically a directory for Green companies. Each company has a custom taxonomy category attached to it, sometimes more than 1, but basically I want to have a URL structure like ...
0
votes
1answer
54 views

Custom Post Type + Category archive

I have created a WP stack with 3 post types: 1. Post (default) 2. Event 3. Place These 3 post types share the same taxonomy, that being the default WP category, here are some example categories: ...
0
votes
0answers
25 views

Problem with 'save_post' hook not running

I have a custom post type, with a custom meta box which contains a number of input fields. The meta box is displaying fine but when completing all the fields the data is not saving, in fact, the ...
0
votes
0answers
9 views

Independent categories to custom post type

When ever I create custom post types I face the problem that categories are shared with normal posts. Is there a way to keep these category taxonomies separate? For example this is my custom post ...
-1
votes
1answer
24 views

How do I assign the post parent?

I am trying to connect two custom post types. Through lots of googling, I found the following code that adds a meta box to the admin screen to select a post from another post type as the parent, but ...
-1
votes
0answers
14 views

Custom roles and capabilities not displaying custom post types in admin menu

I've created several custom post types, user roles and their meta capabilities. All works fine for Administrator user, but if I login with some made user role, wordpress doesn't show the custom post ...
0
votes
2answers
53 views

How to set parent-child relationship between differents custom post types

I have just set up a post/parent relationship between a post type "episodes" and a post type "cartoon-series." I used this bit of code to add in the meta box to assign the parent from another post ...
0
votes
1answer
26 views

Calling specific page with wp query

I'm making one page website and I added a custom field on "Page" post type that asks "Use this page as a section:" Yes or No(with dropdown). I called all pages on template-onepage.php(custom template) ...
0
votes
1answer
38 views

WP_Query() with custom post type and taxonomy — get all terms?

I have the following custom post type: lesson custom Taxonomy: subject which contains terms like math, reading, etc.) I have configured my page so that the user may filter the results by ...
0
votes
2answers
26 views

Comprehensively Restrict Post Type Taxonomy to Logged-in Users

I've registered an employers post type with several associated taxonomies and want to all associated pages (single, term archives, post type archive page) only viewable by logged-in users. I've ...
0
votes
1answer
28 views

Customizing a plugin function using a hook

I've written a hook in my functions file that adds a metabox, from an installed plugin, to a custom post type that I've created. The metabox appears fine, but the default selection that is checked in ...
4
votes
1answer
96 views

Combining Multiple Taxonomies in one URL

I'm creating a complex site with a product catalog with two custom taxonomies. They are Brands and Types. Brands - Canon - Toshiba - HP Types - Printers - Scanners - Multifunction I need a page ...
3
votes
1answer
28 views

Change page /2 to /transcript with a Rewrite

I set up this rule (in functions.php) function custom_rewrite_basic() { add_rewrite_rule( 'episode/([^/]+)/transcript', ...
0
votes
1answer
21 views

How to run filter only on custom post type edit screen

I am trying to force minimum width and height requirements on featured image upload on a particular post type only. My minimum width/height code is ok, as it works just fine on all post types. I am ...
0
votes
1answer
18 views

How to make post page unique and show it on home page?

I don't know if the title is correct but I'll try to explain my question below. I have created a custom post type "Projects" and the trick is that one project have to be unique and displayed on ...
0
votes
1answer
18 views

Trying to modify custom search function in plugin to search postmeta table for keyword as well as posts table

I am trying to modify a plugin that searches the posts table and have it also search the meta_value in the postmeta table. original code is: if (!($index_page = $wpdb->get_row("SELECT ID AS id, ...
0
votes
1answer
23 views

Custom Post Type Audio Content

I want to make a custom post type of songs. Is there any way that i can provide an upload button to the admin to upload song as a post. So that it can be accessed via the_content(). I don't want to ...
1
vote
0answers
19 views

How to import files to individual posts of a custom type

I'm very inexperienced in WP, so I may have some fundamental misunderstandings - definitely open to alternative approaches if this one is crazy! I have a collection of several hundred files, split ...
0
votes
0answers
36 views

woocommerce: add custom field and visual composer

how do I add a custom field area to the single products dashboard and add visual composer support to it? Thanks.
0
votes
1answer
28 views

How should I structure complex content hierarchies?

I am pretty new to WP and I have not had to deal with any overly complex content structures as of yet. Until now. I'm trying to figure out the right mix of Custom Post Types, Taxonomies, Pages, etc. ...
0
votes
1answer
6 views

current_menu_parent for custom post type and custom url

I have defined a custom URL that loads a custom template, as a customized "archive" por a custom post type. I can't use the native archive since the page has a couple requisites that the archive ...
0
votes
1answer
39 views

Changing custom post_type when publishing

I would like to change the post_type from "prototyp" to "gutschein" when publishing a "prototyp" (clicking publish button of a "prototyp"). Is there a way to make this automatically by a function? ...
0
votes
0answers
18 views

Custom Taxonomy in WP_Query not returning any results

This is how I'm doing myWP_Query, it gets the query_var because I'm using it with my custom post_types as well. The thing is it's not filtering anything! It gets all results for that post_type and ...
0
votes
0answers
25 views

Completely remove “posts” from Wordpress

I am using a plugin which handles a custom post type for me, and therefore I have no use for the original "Posts" post-type. I want to remove this from the menu and remove it's functionality so that ...
0
votes
2answers
42 views

Custom post type taxonomy not sorting correctly

i created a custom post type and also some taxonomy to be able to perform sorting on the display list. It is all working well on my local testing installation but as soon as i put on the production ...
0
votes
0answers
26 views

My custom post type displays the same page (the latest post)

I've been trying to develop my website, everything was going well until I noticed that my custom post type is not acting right. Let's say, I have three posts in my custom post type, they all appear ...
0
votes
0answers
28 views

Fetching private posts or custom post types via WP-API with basic authentication

I've installed WP-API along with Basic Auth. I'm able to fetch cpt posts using curl http://siteurl.com/posts?type={post-type} However, if I change a post to private, it is no longer returned. This ...
0
votes
1answer
34 views

Changing sort order with pre_get_posts using is_post_type_archive doesn't change category pages

I'm trying to change the sort order of staff members using post meta. This works just fine on the main staff archive page but I can't get it working on staff category archives. I've tried this: ...
0
votes
1answer
27 views

Displaying a div from an assigned meta_value when on a page

On my website I created a custom metabox that is being displayed in the post type "page". The metabox will display a checkbox and 4 url fields. The checkbox will control the visibility of a div ...
-1
votes
0answers
26 views

Permalinks not working in nginx webserver

I am unabelt to set the permalinks on the nginx webserver. (Wordpress 4.0) right now i am not using any setting in the nginx.conf file. i am also using the permanlinks for the custom post types. we ...
0
votes
1answer
16 views

Post ordering not working with custom field

I am trying to create an Events CPT with a widget, and can't seem to fathom out how to get the ordering done right. My arguments that I have are: $event_args = array( 'post_type' => 'event', ...
0
votes
1answer
38 views

Save and user submitted data from a form and display them in the wp backend

My question is very simple but the answer I'm not sure if will be that simple. I'm developing a website for a non-profit organization where people can fill out a form containing questions usually ...
0
votes
0answers
11 views

Post Status in Custom post Type is changing to Publish and always remains to Draft

I have created custom post type using below code- /*install plugin*/ register_activation_hook(__FILE__,'sotouser_install'); /*create custom post type*/ add_action('init', ...
0
votes
1answer
43 views

get_post_types not working properly in admin

I'm trying to get all post types (custom & built_in) but it's only gives me only built_in ones in admin. I can get all of them in root (5 with builtins included) but in admin, i can only get 3. I ...
0
votes
1answer
50 views

Pagination in custom post type page template

I made a query for my custom post type "websites". I'm trying to get the pagination working but I'm running in some errors. I think the whole code is ok, only the part just before the end while tags. ...
0
votes
2answers
35 views

wp_query check if integer exists in custom field's array

I'm using a wp_query to find custom posts that have a specified numeric value inside of a custom field. That custom field's value is an array of numbers (IDs of selected posts using Advanced Custom ...
3
votes
1answer
57 views

Custom post type Admin Page

I've got a custom post type that is going to be showcasing images that users have submitted, at the moment, check the images that users have uploaded is a boring task – I have to go into each post, ...
-1
votes
0answers
18 views

Get the content of custom post by tags

I create 'Look' who is custom post with category, and in some product page i would like, if they have a tag who are the same of the look-category to show the content of the associate look. Any idea ? ...
0
votes
1answer
12 views

Customising the admin columns for a custom post type, but now most of the built in categories don't display?

Our admin dashboard list of our custom post type shows by default two columns - title and categories. We want to improve the list, and to add the foobar custom field. So we do that as follows: ...
0
votes
2answers
46 views

Change upload_dir folder at a certain cpt but cant change back

im try something with the upload_dir filter I check the current CPT with this function function get_current_post_type() { global $post, $typenow, $current_screen; //we have a post so ...
0
votes
0answers
29 views

Custom Post Type Taxonomies

I have successfully looped through the taxonomies that I set up for a custom post type, and you can see that here: http://www.methodsconsultants.com.php53-13.dfw1-1.websitetestlink.com/tutorials/ ...