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

learn more… | top users | synonyms (1)

0
votes
0answers
152 views

Show custom taxonomies in admin panel under custom post type

I have added a custom post type called "product" to my theme. I have also created a custom taxonomy for this post type called "product_category". In the admin panel, the custom taxonomy shows up ...
0
votes
1answer
48 views

Randomly placed sticky custom posts complemented by blog posts

On my index.php file I am showing the most recent posts using the standard index.php file. However, I'd like to include a custom post type (named products) in this standard loop. Have about 6 products ...
1
vote
1answer
809 views

404 - Category pagination for custom post type

--Edit I've managed to narrow it down that the paged variable is not working properly here, (get_query_var('paged')) ? get_query_var('paged') : 1; is always returning 0 although maybe it is due to ...
0
votes
1answer
128 views

Associate Posts with individual user - hide from other members

Does WordPress have any functions which will help me create a system to have data ( eg custom posts ) associated with a particular user and (by default) not visible to any other user. I have had a ...
0
votes
0answers
33 views

Custom post type child of custom post type

I am trying to make a custom post type as child of another CPT. or Add a taxonomy for ID of parent post (then how to make it required). Why I am doin this ? Actually I have two custom post type ...
0
votes
0answers
46 views

Problem querying new custom post type while old display fine

I had existing custom post types, which I am able to query successfully. But newly registered custom post type does not show up, I have added 2 test posts, individually it shows up under post type ...
2
votes
0answers
259 views

Inconsistent temporary 404s on whole install | PHP error with post-template.php

I'm deeply confused by this one: I have a WordPress install on a Media Temple GS [one of many which work fine and are configured almost exactly the same] which is occasionally giving me 404s sitewide. ...
1
vote
3answers
608 views

Drag n Drop Post Order for multiple Custom Post Types

I have two custom post types (Branding Elements and Products) that I'm showing on a single page, and the client wants to be able to control the sort order of the page. What would be the best course ...
1
vote
0answers
29 views

Custom Permalinks for Custom Taxonomies/Post Types -> Top Level Pages not working [duplicate]

I have created a custom post type called "artists". These are categorized by the custom taxonomy "style". I do have this: ./photography/edward-example (single page with details) ...
0
votes
1answer
36 views

Under What Conditions Can I name my CPT the same as my CPT Page?

The story goes that you cannot have by default the same CPT slug as the page you need to create for your CPT. On a few occasions I've been able to do just that though and have it work just fine. For ...
0
votes
0answers
24 views

create a permalink based on a post type

I want to create a permalink based on a post type. I am using twitter bootstrap nav walker file. In this way: example.com/#home example.com/career example.com/#testinomial example.com/contact i am ...
1
vote
1answer
104 views

custom comments on specific post type

I have a custom post type called debate and I want to create some custom fields just on this post type. So, I have this code: function debate_comment_fields( $fields ) { if( is_singular( ...
0
votes
0answers
111 views

Remove custom taxonomy 'post-type' from post URL

I want to remove custom taxonomy 'post-type' from post URLs like: http://example.com/wordpress/post-type/post1 to http://example.com/wordpress/post1 I have used lots of plugins and rewrote URL. ...
1
vote
0answers
99 views

When an unregistered user submits a form for a custom post type, send an email that lets them delete their post

I want visitors to submit a form (created with CRED, but could use Gravity Forms or Formidable Pro if that helps) that submits a custom post type that's immediately published. I know how to do this. ...
1
vote
1answer
130 views

allow BOTH post slug and meta key value in permalink for custom post type

I want to pull up a custom post type called Schedule whether the permalink uses the post slug OR a value stored in the post's meta values. E.g. /schedule/jims-schedule/ and /schedule/67sGHGj54hjs/ ...
0
votes
1answer
179 views

Sortable column containing numeric values for Custom Post Type at WordPress Backend

I have custom post type named Cars. By default, it is sorted by post publishing date, which is very unusual. WordPress should have provided option to sort columns containing numeric values. Alas, ...
0
votes
1answer
965 views

Passing variables through permalink structure in custom post types

I'm having a real headache with this one, and not sure what to try. Basically, I'm building a website with a custom post type of 'charities'. There are many charities listed, we'll use RSPB as an ...
0
votes
1answer
307 views

Can't pull posts of a Custom Post Type based on the custom taxonomy of the CPT

My question is about retrieving custom post types via get_posts, when custom post types also have a custom taxonomy. I can use get_posts to retrieve all posts of a custom post type, but when I attempt ...
0
votes
0answers
55 views

Using pagination with specific custom post type [duplicate]

Alright.. I've been looking alot on the internet in search of a solution for this.. so far i found nothing that could explain me how to solve it.. When i click on Page suivant from the navigation ...
0
votes
0answers
69 views

delete custom post type using a submit form

here i'm trying on submitting to delete the post in process.. i've tried without the hidden input aswell as doing the if isset on the redirecting page when form's submit. all 3 ways failed. ...
3
votes
1answer
437 views

Get all authors with at least one post of 'custom post type'

How can i achive that? I found count_user_posts and get_users, but how would I merge them into the desired result? Do I really have to use a WP DB Query?
2
votes
1answer
853 views

Using Custom Meta Capabilities on Custom Post Type

I am trying to create a product post type. I have already done so and been using it successfully in the development of a product review panel. I am trying to give a certain role the ability to create ...
1
vote
1answer
79 views

Custom Post Type with metaboxes (no content) only?

I have a Custom Post Type called "cities". Each city has: Name, Population, Coordinates and so forth. I don't want users to be able to add their custom content there (using wp-content editor, HTML or ...
0
votes
3answers
187 views

List a custom taxonomy's terms, with links, on the taxonomy page

I have registered a custom post type in my functions.php file for "Wines", with this code: function customposttype_wines() { $labels = array( 'name' => 'Wines', ...
1
vote
3answers
480 views

Custom Posts Types as Custom Fields

I have three Custom Post Types: Book, Volume and Chapter where one Book can contain many Volumes and one Volume can contain many Chapters. I want to do something like this: The user access "Books" ...
0
votes
0answers
104 views

Perform a function to create/delete custom post only if certain user meta checkbox is set to true

I have a website where I would like all subscribers to be able to create or remove a post that says they are accepting new patients (they are doctors) by checking or unchecking a custom checkbox that ...
0
votes
1answer
402 views

Hide Meta Boxes for Non-Admins

I have a review based wordpress site where I have a page for each different company where there users can review them. The theme I use adds a custom post type called "review" and I have used Press ...
0
votes
1answer
165 views

Highlight current post type when inside custom post type

I have a custom post type called: "movie" I have only 4 movies in my movies section in the site. Inside each movie post type I want to display all other movies in a side list like so: movie 1 movie ...
0
votes
1answer
46 views

Modifying and Displaying URL's in a Post Template using parse_url

I have a Custom Post Type with a template named single-posttype.php. I'm using the Advanced Custom Fields plugin to display certain information (price and links to the actual product). All that is ...
0
votes
1answer
518 views

add category name to permalinks on product page /category-name/product-name

I'm trying to reconfigure the permalinks used in WooCommerce such that the following format will be displayed: homesite/category/product. Right now, the permalinks only shows under a category page: ...
1
vote
0answers
677 views

wp_dropdown_categories in custom post type with custom taxonomy

I have a custom post type with its own taxonomy, basically 'show venues' is the post type and venue-regions is the taxonomy. Seeing how a venue cant exsist in mutiple regions, I've removed the ...
2
votes
0answers
54 views

CPT's archive and single page not working [closed]

I created a custom post type function faq_func() { $labels = array( 'name' => _x( 'FAQs', 'Post Type General Name', 'rrrrr' ), 'singular_name' => _x( 'FAQ', 'Post ...
0
votes
3answers
422 views

Conditional Statements

I have created Custom Post Type called - listing Also created custom taxonomy - listingcategories In listing categories, i have created two categories music 2. features Now i want to create a ...
0
votes
0answers
101 views

How to display custom post type category?

I have a custom post type taxonomy created: function wps_register_paneltype_tax() { $labels = array( 'name' => _x( 'Panel Category', 'taxonomy general name' ), 'singular_name' ...
0
votes
0answers
183 views

Wordpress : “link to existing content” not shows custom post types

I've seen many people who write for similar problem, i.e. to remove a custom post type on the search box for "link to existing content" on the tinyMCE editor of Wordpress. I've a reversed problem, I ...
0
votes
0answers
94 views

How to get child taxonomies

This is the custom post type structure I have: Custom Post Type Custom Taxonomy Sub Taxonomy 1 Sub Taxonomy 2 Sub Taxonomy 3 On the current Custom Post Type post/page, I need the code that ...
2
votes
2answers
452 views

Custom field losing p tags on display

I have a Custom Post Type that has several custom fields. One of the fields is multi-line and includes text with p tags. When I view this field in the visual editor the p tags are all there. I ...
0
votes
0answers
186 views

Custom field template missing for some custom post types

I'm completely new to WordPress and I am supposed to maintain a website made by someone else. This website has multiple custom post types. For each custom post type, there is a custom field template. ...
-2
votes
1answer
117 views

Good practical way to do loop within loop to show child custom type using a template code

I'm using Version WP e-Commerce plugin 3.8.12.1 I used a custom post type "event" with multiple value field "event_photos" and the field type is wpsc-product. To show a single "event" use ...
1
vote
0answers
56 views

How to get the post terms from a child taxonomy

I have the following code that gets the slug of the taxonomy "author" from a custom post type "books" and gets the post from another custom post type "authors" that has the same slug. <?php ...
1
vote
1answer
90 views

Normal pages as children of my Custom Post Type

This one is tricky, I've got Custom Post Type called "dictionary", users add "definitions" there which are automagically put into right categories (so for example if user adds "Apple" it's under "A"). ...
0
votes
1answer
38 views

Custom Post Types in plugins?

I've been wondering about this. In most plugins I see now, they look like CPTs but they don't have the 'published' link. They don't serve as post as well. They're just plugins that stays in the ...
0
votes
1answer
72 views

CPT to installable Plugin

I have gotten pretty good at creating CPT's for clients sites, but now would like to take it a step further by making them plugins outside of the theme so when/if they decide to change themes it is ...
0
votes
1answer
57 views

Wordpress multi-query not returning as expected

I am trying to perform a merged query to get at most 6 posts from either the post post type and my events custom post type. The post query is based off of whether or not the Featured Image is set, and ...
1
vote
2answers
101 views

Hierarchical Custom Post Types in Array

I have three custom 'location' post types which make up a hierarchy of areas: location1, location2, location3. location1 is the top level and then location2 and location3 are childeren of each ...
0
votes
0answers
125 views

Trying to combine multiple Wordpress queries

I am trying to query multiple post types and meta values in Wordpress... the query is trying to fetch event post types with a featured meta key, as well as post post types with the featured image set. ...
-2
votes
2answers
78 views

Update an existing post in a custom post type

Lets say we have a connected user that access one of his post to replace some existing information in X fields that already exist with some new ones. How could I manage to update the old ones with ...
0
votes
2answers
60 views

Custom Post Type URL Rewrite's

I am going to try and sum up what I am trying to achieve... Basically I have a custom post type called 'marketing_list' which will have custom fields holding information relating to marketing lists ...
0
votes
1answer
78 views

Change Taxonomy Permalinks

I have custom posts and I created one page that shows all my custom posts. Example: www.example.com/archive-page I wonder if I can change permalinks of categories and tags related to this custom ...
0
votes
0answers
139 views

Link directly to media file through 'add link'

I'm trying to achieve exactly what the title says. I'm building a site for a client, and am trying to make the site as user friendly as possible. They aren't very IT literate, and already are ...