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

learn more… | top users | synonyms (1)

0
votes
1answer
34 views

Displaying information from Custom Fields in template with Types?

I am trying to understand Custom Fields and how I can use them on my posts. I have set up a Custom Field for 'author' and associated it with a template. Now, on the PHP side of things I need to ...
0
votes
0answers
109 views

Insert Gallery Doesn't insert shortcode

I have a custom posttype where for some reason the "Insert Gallery" button generates an javascript error Uncaught Error: Syntax error, unrecognized expression: [gallery ids="113,111"] ...
0
votes
1answer
43 views

Custom post type title of each author in his own post

I have a seriously problem :( maybe someone can help me The users registered in my wordpress page have one post only, and i created custom_post_type named "ofertas". The users can create one oferta ...
0
votes
1answer
44 views

Custom post type won't take my custom fields

I have written the following plugin: <?php /* Set up the post types */ add_action( 'init', 'mdg_kjdz_register_post_types' ); /* Register the post types */ function ...
0
votes
0answers
130 views

How to search attachments (images) and posts in WordPress of a given post type

I'd like to extend the search functionality in a WordPress blog in order to search a custom post type including its attachments. I got some progress searching posts and attachments, also excluding ...
0
votes
0answers
54 views

Wordpress CPT Upload Audio Files to wp-content/upload/audio

I'm working on a custom post type for my blog that will read files in the directory specified and create a post for that file. I also want to use the wp upload handler in my custom post type but I ...
0
votes
2answers
78 views

Custom Template Taxonomy

I have 3 custom post types - Events, Music and Video. I have custom article pages for these 3 post types as having them on a singular archive page would be bloated. So i have: archive-events.php ...
0
votes
1answer
127 views

Using custom post types WordPress network

Working on a project I am setting up a WordPress network containing sites/blogs for small shops. I would like to use 2 custom post types in the following way: A location post type; The blog admin can ...
0
votes
0answers
32 views

Get_post_meta returns Array instead of actual value [duplicate]

With the PODS plugin in Wordpress, I've created a custom post type called project. Within project I've created a few custom fields. One of those is project_thumb. The thing is; When I want to display ...
0
votes
0answers
131 views

How to make nested custom post type slugs work

I'll try to explain how I want this to work, rather than what I've done so far, as nothing seems to work. I want 3 custom post types: Products Consumables Accessories with the following slugs: ...
0
votes
0answers
34 views

Using a default CPT archive slug as a page and using a different URL for the archive

I want to have a custom post type whose "slug" also shares the name on a core page. Basically because I want to give said page more custom look and look nothing like an archive (it don't need ...
0
votes
0answers
66 views

How to filter a meta key with the meta values?

I have a custom post type wich I'd like to filter on a meta value. I already can sort the meta values from a meta key with the following code: // Register the column function status_column_register( ...
0
votes
0answers
66 views

How do I create a custom archive page that my client can edit?

I've created a custom post type. I have set has_archive as true and understand I could also set it to has_archive => 'ctp' I also know that if I name a template file archive-cpt.php Wordpress will ...
0
votes
0answers
31 views

custom fields multiple image fields

i am building an artist's archive with WP to host a variety of entries (custom post types such as "photographs", "artworks", "publications" and etc.). due to the large quantity of data, i am ...
0
votes
0answers
120 views

Selectbox Custom Post Type

I use a dropdownbox to show all custom types. On the archive page of the custom post type it works fine. If I put dropdownbox to another site, it doesn´t work anymore. The selectbox is empty. Any ...
0
votes
1answer
240 views

Creating a navigation menu of all posts of a custom post type and their children posts?

I have a drop down menu that displays a link (the permalink) to all of the posts of a custom post type (county) and would simply like to display their children too this is the code I have so far but ...
0
votes
1answer
49 views

Custom content for Custom Post Type parent page?

I'm looking to set a static page as the parent for a custom post type. Right now the parent page is showing all archives for that custom post type. For example http://mysite.com/cpt would show ...
0
votes
1answer
75 views

Best Practice for Changing Custom Fields

I'm using the Advanced Custom Fields plugin for a project I'm currently working on. From what I understand, ACF stores its values into WordPress' Custom Fields. What I wanted to know is what's the ...
0
votes
0answers
53 views

Query post names based on tags of current post

I have a custom post type called 'employer'. In some of my normal posts, I use the slug of an employer as a tag to link the two together. For example POST A mentions "Adidas" and therefore I add ...
0
votes
1answer
435 views

Custom post types with date based archive

I'm trying to create an archive for a custom post type. My custom post type is called journal and I'm running WordPress 3.3.1. My understanding is that from WordPress 3.1 this should be an included ...
0
votes
0answers
200 views

Static Page Titles for Genesis Single Post Page

I would like to have a static Page title not post title to my single post pages. Right now i have my News page and Events page. that's using a custom query. I'm not really sure how to explain it. I ...
0
votes
1answer
64 views

Pagination always adding “Next” link when results come from Custom Post Type WP_query

Or at least that's how it seems. I have a page to which I pass several arguments to query post_meta for a custom field and I always get an extra "Next" link no matter the number of posts. If querying ...
0
votes
1answer
294 views

Filtering custom post type on a combination of custom taxonomies and custom fields?

I have a custom post type "artist". It has an associated custom taxonomy "artist_type" with terms "voice", "actor", "corporate" An "artist" also has custom fields for gender, location, agerangefrom ...
0
votes
2answers
214 views

how to redirect to a custom post template

I'm building a website in which there is a page where I collect a list of works/projects; I created a file called work.php where I made the template of this page, but when I try to view a single ...
0
votes
1answer
64 views

Rich Custom Field for Custom Post type not saving

I am new to creating meta boxes and I am trying to create a custom field meta box that is connected to a custom post type which is created by WooTheme Sensei (Post type = lesson). I am trying to use ...
0
votes
0answers
476 views

WP Page Navi Not Working in my Custom Query - Events Page Only

I'm using the same custom wpquery format in my NEWS page. And my pagination uses WP PAGE NAVI plugin. It does work on my NEWS PAGE but doesn't work on my EVENTS PAGE. Plugins used: 1. WP PAGE NAVI ...
0
votes
0answers
40 views

short code not working in custom post type listing, how to fix it?

Any activated plugin's short code not working while I listing all post from specific custom type, it's display short code as it is, but short code is not executing, my custom post coding is below: ...
0
votes
1answer
32 views

Customize category URL

I've searched around and have not found the answers im looking for. By default I have: example.com/blog (blog archive) example.com/blog/entry (single entry) example.com/blog/category/announcements ...
0
votes
1answer
101 views

Pagination with Custom Post Type

I created a custom post type named "noticias" and duplicated archive.php with name archive-noticias.php. Everything works but when pagination actived, don't work page 2, 3.... I use plugin "T5 Page ...
0
votes
0answers
17 views

How to make a listing of my custom_post_type that the user can dynamically sort from the front-end?

I have a custom_post_type that I want my users to see a list of, which they can dynamically sort by certain attributes. The list would be in a html table format with pagination. Ideally with a ...
0
votes
1answer
2k views

Updating post title using wp_update_post

I am creating a custom post type for a people page for a client website that has meta fields for both first and last name, but I would also like to update the title for the custom posts to be a ...
0
votes
0answers
99 views

Custom post type URL returns 404 error page

I have a post_type called "products" and inside it have two taxonomies "destinations" and "types". Inside destinations i have a list of countries as terms and inside types i have (hotels, cruises). ...
0
votes
0answers
28 views

Custom post Type Pagination help

i'm wondering how to add pagination like 1,2,3.. on my custom posts listing page. Below is my custom post template which lists all my custom posts, <?php while ( $loop->have_posts() ) : ...
0
votes
0answers
145 views

Programmatically Split A Post Into Multiple Pages

We all know that when you're creating a standard post in WordPress you can split the post into multiple pages by adding this code into the text body: <!--nextpage--> Is it possible to split a ...
0
votes
1answer
59 views

pre_get_posts action doesn't work

I'm trying to load only two types of posts ( 'news' and 'reviews' ) in home page using pre_get_posts: // Load Home Page Posts( reviews and news ) function search_home_posts( $query ) { if( ...
0
votes
0answers
37 views

Non-public custom post type - View post link

I have created a custom post type as follows: register_post_type( 'testimonials', array( 'labels' => array( 'name' => __( 'Testimonials' ), 'singular_name' => __( ...
0
votes
1answer
77 views

Custom Post Types Archives and daily/monthly joke

I have created a custom post type called joke using custom post types ui plugin. I have enabled archives for that ctp. I would like to have a page that would display the daily (or monthly) joke, and ...
0
votes
1answer
88 views

Compare Two Custom Post Types Using The Same Custom Taxonomy

I have two post types, courses and testimonials, sharing the same taxonomies. What I am looking to accomplish is to check whether a course is in the same category as a testimonial. Then display if it ...
0
votes
0answers
52 views

making a glossary with wordpress

I know that there are glossary plugins in the wordpress repository. This plugins normally searches glossary terms in post content and adds a link to it. But i have not found one, that search and ...
0
votes
0answers
59 views

How to call one custom field value if another custom field value is equal to today's date

I'm building a website for a school division in Canada, they help organize their days by assigning a school day to each day of the week. There are 5 school days, and so they do not always end up on ...
0
votes
1answer
232 views

title tag for custom post type remove taxonomy name from title tag

So it appears I am missing a vital pice of information somehow to make my custom post type title tag behave. everything else works fine. my current - simple - scenario is this : wordpress 3.8, ...
0
votes
2answers
657 views

custom post type index page

I have registered a custom post type and I want to create a page where I will list some posts, it will be like an index page. I have created an archive page called mycpt-archive.php and a page called ...
0
votes
1answer
14 views

Retrieving IDs of child pages which are in a different post type

I have a normal page, which has subpages in a custom post type. I've tried to get_pages based on the child_of parameter but it returns nothing. What is the best way to do this?
0
votes
1answer
1k views

Custom post type archive page pagination

I have set up an archive page for my custom post type reference, where I use a query to get all posts of type reference. This works, but when I try to paginate the result, it doesn't work. Right now, ...
0
votes
1answer
47 views

How to hide a custom field from admin?

I created a custom field that I would like to hide from the wp-admin (because the system generates it and I don't want user to change it; Hidding it with CSS should be OK in this case), Like this, ...
0
votes
1answer
71 views

Posts without featured image using other post's featured image

I am using the following code (see bottom) to display a custom post called 'artists'. I am also using <?php if (has_post_thumbnail( $post->ID ) ) so I can set the background of a div using the ...
0
votes
1answer
65 views

Conditional Tags If Custom Post Parent & Child?

Check on the single-artists.php whether we are viewing the parent or child of the said custom post? Tried this but always shows the top child content, rather then showing the two different area ...
0
votes
1answer
72 views

How to change the default orderby from “Date” to e.g. “Title” or my custom column in content type records list in admin?

How to change the default orderby from "Date" to e.g. "Title" or my custom column in content type records list in admin? Right now the created or cahnged is always the first. But I want to order the ...
0
votes
1answer
73 views

Query child posts on parents single.php?

Is it possible to query the child posts of the single post your on? i.e you have a custom post type called apples. The parent page is... single-apple.php On that page query and display all its own ...
0
votes
0answers
197 views

wp_set_object_terms not working in functions.php with custom taxonomy

I am using custom fields with custom taxonomy... And needed to asign new post to custom category. As you know default wp_insert_post not working with 'post_category' with custom posts. So we need to ...