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

learn more… | top users | synonyms (1)

0
votes
1answer
11 views

Custom admin columns for ALL custom post types

I have the following function which is working perfectly for my 'video' custom post type to display customized columns in the dashboard. I have decided the way my plugin will work is to have custom ...
0
votes
1answer
256 views

Issue displaying multiple TinyMCE editors with WPAlchemy

I have a custom post type with a WPAlchemy admin meta box class including multiple textareas with TinyMCE editors(for adding content to the custom post template). I've gotten the editors to display ...
1
vote
1answer
11 views

How to best delete orphan wp_postmeta

I'm in the middle of doing some fairly complex queries involving metadata from a custom post type. Unfortunately if any posts are deleted the metadata stays put which complicates matters as I am ...
1
vote
1answer
28 views

Pagination for single custom post type page, using Posts 2 Posts plugin

Is it possible to add pagination to the single.php for a Custom Post Type, such as single-items.php. On this single page, I am using the Posts 2 Posts plugin ...
0
votes
0answers
23 views

Custom Post Type Taxonomy Filters

Im really struggling to piece this functionality together, and hope someone can help or provide snippets to get me there. So I'm creating a section on a website where stories are published, I have ...
3
votes
2answers
3k views

Possible to hide Custom Post Type UI/Menu from specific User Roles?

What I'm looking to do is completely hide the UI for a custom post type from specific user roles...Ive previously found many resources on how to disable access to using those CPTs but nothing that ...
0
votes
1answer
17 views

Custom post type within a subdirectory

I've searched around but have not been able to find an answer to my question. What I'm trying to do is create a custom post type that exists within a sub-directory, not just after the root as is ...
2
votes
2answers
305 views

List most recent image uploads, but only for specific custom post type

I can get a list of the most recent image attachments like so: $attachments = get_posts( array( 'post_type' => 'attachment', 'posts_per_page' => $number, 'post_mime_type' => ...
0
votes
2answers
27 views

Customizing the display of custom post types

Currently I have a custom post type and I would like to have some different version of it based on user input - so for example when creating a post the user can select if the post is Featured or Free ...
0
votes
1answer
21 views

Add tags to custom post type without menu link

I've worked out how to add tags to custom post types using 'taxonomies' => array('post_tag') However this adds another "Tags" submenu under my custom post type menu which I do not want. How do I ...
1
vote
1answer
95 views

How to auto send email when publishing a custom post type?

I'd like to have an email automatically sent out to my website's subscribers when I publish a post for a specific custom post type. I've found a few plugins that will do this but only for regular ...
2
votes
1answer
29 views

Custom comment status possible?

I am a newbie to WordPress and I have some experience in PHP programming. Recently, I have a lot of comments for my WordPress blog and I wanted to manage them in better order. I wish to "archive" ...
1
vote
0answers
26 views

Custom post type for 'staff' versus using wordpress user profiles?

A scenario I keep coming across is where an organisation might have several staff for whom I want to have some sort of listing and a single profile page with biographical information. Typically I ...
0
votes
1answer
26 views

If custom taxonomy else conditional [closed]

I have a menu that I only want to show on certain pages using the following code: <?php if ( is_front_page() || is_archive() || is_404() ) { } else { if ( function_exists('has_parent') ) { ...
0
votes
0answers
21 views

Hook to edit options/settings of custom plugin

Is there a way to hook the edit function of WP to edit options/settings of a plugin? My plugin has some options (address, phone, etc) that are displayed on the single page of a particular custom post ...
0
votes
0answers
22 views

“regular” pages not found after changing permalink

My regular pages with the default theme can not be found, but my frontpage that is a page but it has an other theme works, even my custom post type pages work. In my permalinks settings I have ...
1
vote
1answer
182 views

Adding Sticky functionality to Custom Post Type Archives

In WordPress, Custom Post Types do not have Sticky functionality as a core feature. It is possible, I'm sure, to create it in certain cases—and I'm working on a project that requires it for ...
0
votes
2answers
109 views

404 Error On Custom Taxonomy Pages 2, 3, etc

I've been reading a bunch of posts about this with no luck so far. I can't seem to figure out what is the problem. I have the following: Custom Post Type: Sermons Custom Taxonomy: Series My urls ...
0
votes
0answers
12 views

Assign custom posttype capabilities on init: no menu-item on activation

I develop plugin with custom post type (cpt) who has some custom capabilities. I add those capabilities to the roles (according to the current caps, see code below) on plugin activation. That won't ...
0
votes
0answers
10 views

Plugin javascript (floating elements) not working on custom post type single page template [closed]

Strange problem, not sure how to figure it out. I had someone create me a cool little plugin that allows me to input a CSS element ID and that element will float to the top of the page and stick ...
0
votes
1answer
164 views

Custom Post Type Archive Page not showing

I have a category on my website called 'profiles' I am in the process of moving this category to a custom post type called 'profiles'. My problem is I cannot get the archive page to show for this ...
0
votes
0answers
30 views

Cannot upload featured image to a custom post type

For some reason I am not able to upload images OR set the Featured Image on a custom post type in my custom wordpress theme. I have added theme support of post-thumbnails to my functions.php file and ...
0
votes
1answer
18 views

Display custom taxonomy on my custom post type

Hello I am very new at customizing themes, my problem is that on my new post type "listing" single-lisiting.php file I need to change the taxonomy category to be display to 4 new taxonomies: status, ...
0
votes
1answer
20 views

Adding Menu Items in Custom Post Types

I'm creating a directory of restaurants with Custom Post Types. Each restaurant's information has its own post. I would like to be able to add the restaurant's menu items to each custom post type ...
0
votes
1answer
338 views

Custom Post Types, URL rewrite on multiple CPTs

Re: Custom post types, taxonomies, and permalinks by @TheDeadMechanic The solution above works perfectly, and rewrite is great, but can you advise on how to rewrite for more than one custom post type ...
3
votes
1answer
125 views

rewrite get parameter with custom post type

I am trying now for a couple days to solve the following Problem: I have a custom post type called gallery. I need the URL http://example.com/gallery/FOOBAR to be parsed like ...
0
votes
0answers
11 views

Make only one CPT available by slug

I did a lot of research until I figured out how to remove the slug from a custom post type. I used the method described in this post here. So I have RewriteRule ^bereiche/(.+)$ /$1 [R=301] in my ...
0
votes
2answers
24 views

Add 'last' class to second post in featured post loop

Hi there I'm using the following query to pull in two featured posts onto the home page of a site I'm building. How do I add a last class to the second post it drops onto the page? ...
0
votes
1answer
175 views

Facebook social publisher and custom post type fields

I have a problem with how Facebook plugin shows my WordPress-based posts on my timeline. What basically happens is that the post image isn't shown. Now, the post image I want to show is a custom ...
0
votes
1answer
114 views

Metabox does not show in custom post type

I am trying to create a metabox input field in a custom post type and it does not work even if I followed the instructions the best I could. I am not a PHP dev so I guess it could be just a small ...
0
votes
1answer
19 views

Display author box on just certain category posts?

I'm using this code to display a author box after my blog posts. The issue that I'm having is that it is showing up on all custom post types as well which I don't want. What I need is for it to show ...
1
vote
1answer
366 views

CSS for Custom Post Types

How do I assign CSS to custom post types so it displays different from other Custom Post Types? Example: Custom Post Type 1: Row of 4 Images Custom Post Type 2: a 2 column with an Image in the ...
0
votes
1answer
680 views

Custom Post Type Query W/Category Dropdown

I'm having a bit of trouble getting a custom post type query working coming from two drop downs. Let me show you what I'm using: The Form: <?php require($_SERVER['DOCUMENT_ROOT'] . ...
1
vote
3answers
297 views

will post_id ever change? Can I safely use post_id for custom queries?

What are the best practices for using post_id? Can I use this safely in my templates to call specific posts, or will these post_id's ever change? The reason I ask is that randomly today the ...
2
votes
1answer
423 views

Using custom post types in submenu + custom title

I'm planning to use a couple of custom post types for a plugin of mine. The whole plugin should reside under 1 toplevel menu item. Thus I would prefer a menu structure like so: Dashboard Posts [...] ...
1
vote
1answer
106 views

Target post type edit page to change view post button, how do I?

I am trying to change the link of the "View Post" button that appears next to the "Change Permalinks" button above the editor on post edit screens for a custom post type. I have altered all the ...
0
votes
2answers
23 views

Using predefined html in new posts

I hope to make my life easy by doing this. I have 2 types of posts. On the first post I have a table and each post from the respective category will fill a table row. I will show you how a posts of ...
0
votes
1answer
184 views

Custom post types templates

I have registered a custom post type called "Services" but when I am giving the single post the template "single-services.php" its not accepting this but choosing the "homepage.php" template can u ...
2
votes
2answers
507 views

Custom post type hierarchical permalinks not behaving as expected for parent/child pages

When you have Pages with children, the permalink structure works something like this: example.com/parent-page/child-page/ All well and good. Trying to go to this URL: example.com/child-page/ ...
0
votes
1answer
32 views

Custom field default value with counter

I have a custom post type called machine and a custom field 'reference_number' what I want is to add a default value to the custom field when creating a new machine and show this value before the ...
0
votes
1answer
16 views

updating one custom meta field only

i am trying to update only one custom field that is store in serialized form. By updating that field my other custom meta fields becomes blank/empty. how can i update only a specific meta value ...
0
votes
1answer
141 views

Help integrating Custom post type meta field with custom profile fields

I have a custom post type for "locations" and I need to have "users" log in and be able to pick a location that is within a certain distance from them. I have added some spots to the profile using ...
0
votes
2answers
161 views

Get all custom_post_type posts + blog posts from one category in a single query

Is there a way to query posts from multiple post_type's and filter the normal blog posts by a category? I am trying to display the 10 latest custom_post_type posts and blog posts on my homepage in a ...
0
votes
0answers
16 views

How to save an integer as taxonomy term?

I've written a custom meta box such that taxonomy terms will always be integers (Unix timestamps), and I'd like to keep them as integers so I can sort these posts by their Unix Timestamp in the ...
0
votes
1answer
21 views

Image sizes incorrect with Custom Post Type [closed]

I have no idea why this is happening, but if I use custom post types at all in my theme, the thumbnails generate, but WordPress doesn't use the generated images. The code I am using for my ...
1
vote
1answer
362 views

Sort posts based on multiple custom fields

I have a three custom fields Meta Key → YOUR_PREFIX_newcar_body_type Meta Key → YOUR_PREFIX_newcar_transmission_type Meta Key → YOUR_PREFIX_newcar_variant and I have to sort posts ...
0
votes
1answer
24 views

Custom post pagination trouble

I do have a problem with a custom post pagination. I search through this site and googled the whole day yesterday, and found nothing that was similar to what I experience (or I'm getting blind...). ...
0
votes
1answer
368 views

Query Custom Post Type by Taxonomy

I've created a query working fine pulling posts from a specific taxonomy—but before I had only 7 taxonomies that were permanent, now I have sub taxonomies under that main taxonomy and they will be ...
0
votes
2answers
291 views

Getting custom post type info using get_adjacent_post

This is an example of how I'm grabbing images from my custom post type now, using query_posts(); // query_posts stuff made up here. $my_array = get_custom_field('image:to_array', 'to_image_array'); ...
0
votes
2answers
413 views

Display featured posts for a custom post type by taxonomy

Ok, the quick explanation: I'm using a custom post type, 'lakes'. And, using custom taxonomies to organize them. They are: state, watertype and county. I've created a 'page' for each state that ...

1 2 3 4 5 61