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

learn more… | top users | synonyms (1)

0
votes
0answers
49 views

Query for related posts by tags with custom field and custom post type

I've found a lot of very similar questions here, and have tried to use the (accepted) solutions without success, guessing I'm doing something very simple wrong and just can't see it so I'm hoping a ...
0
votes
1answer
16 views

How can I get 3 different taxonomy type terms in a div class element?

I have this situation where I need to filter specific post type posts by its taxonomies (there 3 different ones) and since I am using Isotope, I need them in my class element. I already made it work ...
0
votes
1answer
27 views

Enqueueing TinyMCE

I have decided to pull duplicated javascript from multiple custom post type files into one 'admin.min.js' file for use in all admin pages. So far I have got the script to load. This is in my ...
0
votes
0answers
20 views

Create a custom profile field that will have a selectable list of a particular CPT by the same author

My situation is this - I have 4 CPTs - Projects, Drafts, Collab request, and Query. Now, each of the 3 latter CPTs will always have a project CPT associated with it. For example, Drafts will always ...
0
votes
2answers
80 views

Can't get post id on page that is a custom post type archive

I have a custom post type archive archive-projects.php that I am using as a page template because I have some custom fields that I want to display. I am trying to get the post id of this page but ...
0
votes
1answer
71 views

Adding contact form in custom post type

7 I create a custom post type called "Artist". And i have a different artist [post] profile? And now i want to add a contact form on every post. So, User can contact with particular Artist. So, ...
0
votes
2answers
24 views

Custom Posts on Different Pages

So first off let me start off saying I'm new to WordPress development. I know HTML/CSS/JS like the back of my hand, but PHP and it's functions are new. Anyway. My problem may be simple, so here goes: ...
0
votes
0answers
22 views

Fetch posts list from fist CPT taxonomy term and list under 2. CPT

I have two custom post types registered. Custom Post Type: PUBLIKATIONEN with the two custom taxonomies LISTEN and AUTOREN Custom Post Type: AUTOREN Both have archives. With: <?php echo ...
0
votes
2answers
73 views

custom post type archive template per custom taxonomy term

I want to list all posts with a corresponding template for a custom taxonomy term of a custom post type. To make it easier to understand: The custom post type is called PUBLICATIONS and has a custom ...
0
votes
1answer
67 views

Front end page submission form does not attach custom post type

This side of WordPress is completely new to me, but is also extremely important. I have created a form that allows me to upload a page, with all the parameters I need, however a custom taxonomy is not ...
0
votes
0answers
30 views

Custom Post 'Post Per Page’ Crashing Page?

Has anyone encountered this before? A normal page template with a custom post type query on it. However, when it gets to a set amount of posts the page crashes, white space below where the query sits ...
0
votes
0answers
24 views

Pagination custom post types outside loop

Because of speed / SEO reasons I'd like to load my custom post types as pagination ([1][2][3][4] etc). I have a page called apps and load all custom posts from apps. I'm using currently this code to ...
0
votes
2answers
42 views

display news with pictures 3 small and one large (loop)

I'm trying to put 4 news with pictures 3 small and one large, have gotten displaying them but the "large" is repeated with the last "small" <?php $b=1; $args = array( ...
0
votes
0answers
36 views

How to set OG Image as featured image for custom post type?

I have a custom post type named "Episode" I want to set the featured image as the og image so facebook can detect the correct image. I only want the og data to only appear on that specific custom post ...
0
votes
1answer
9 views

Running a custom query inside another cpt single and trying to grab a variable

I made a cpt "Neighborhoods" for different neighborhoods. On the Neighborhoods archive, you click on one and go to the single. All good. an example url is /blog/neighborhoods/south-austin/ But I'm ...
3
votes
1answer
91 views

register_taxonomy with multiple object type and update_count_callback

The register_taxonomy accept array as the object type so I can link as many custom post types to a custom taxonomy. That is fine. The issue is, the default taxonomy count is always zero with the ...
0
votes
1answer
21 views

Create an additional template page for every term taxonomy

Good day, I am trying to add a gallery page for my website by term-taxonomy, example I have a custom type named "School" and it has 3 terms which are "grade school, highschool and college" and I ...
0
votes
1answer
49 views

How to get $post object available inside functions.php to localize script?

I have a problem with a wp_localize_script in my functions.php file. I am trying to get a script localized for a custom post type ("gallery"), however, the error emerges that I am trying to access a ...
0
votes
0answers
27 views

How do I get a nested query to only display content that the main query outputed

I have a CPT 'artists' and a CPT 'events' I want the 'artists' to query first based off the posts tag and then I want the 'events' to query events based off what 'artists' was queried. Heres what I ...
0
votes
0answers
29 views

How to add elements to WordPress appearance->menu admin?

I would like to add a custom post Type Archive page to my menu, using the appearance->menu admin. I found several blog posts (although a bit old) proposing different solutions, but I didn't managed ...
2
votes
2answers
190 views

Add custom field to media attachment image attribute in post editor

I have the following filter, but do not know how to add custom attributes to image field, when attaching media to post. example <img data-ext-link-title="" data-ext-link-url=""> ...
0
votes
1answer
49 views

shortcode order for event custom post type

ok im working on a website using post type event with post_meta event_start_date, i created a shortcode and everything is displaying fine except for it displaying in order, it seems as its not ...
-1
votes
1answer
77 views

display custom post type from register taxonomy

I've created a custom post type via this function: function custom_post_type() { $labels = array( 'name' => _x( 'advertising type', 'Post Type General Name', ...
0
votes
1answer
30 views

Get A Custom Field From A Custom Taxonomy Of A Custom Post Type [closed]

This has probably been answered before but I'm stumped so I'll ask anyway. I have a custom post type called products. I then have a custom taxonomy called product-category. I've set up a custom field ...
0
votes
1answer
43 views

Custom Post Type Not Displaying Correctly

Okay, Where is teh custom post type directed to? is it single.php or page.php I have a page.php with a template part that displays each of my custom types but when i click on the item itself i just ...
0
votes
1answer
15 views

Get uri of CPT archive page

I have a custom post type which uses an archive page and a slug 'rewrite' => array('slug' => 'news'), 'has_archive' => true I am using a PHP form on one page which I want to post to ...
0
votes
1answer
44 views

How can I see a list of products that I have set to outofstock through a custom field check box?

So I have tons of products being displayed through my custom post type of products made by the 'Advanced Custom Field' and 'Custom Post Type UI' plugins. I made a very simple custom field named ...
0
votes
1answer
52 views

post_parent in custom post type

I've two custom post types, type1 and type2 My current workflow of creating contents, from the user perspective a user created posts of type1, i.e. post1, post2, post3 on a particular day our ...
0
votes
0answers
27 views

Custom post types - Archive or parent/child for navigation

So, I want to redesign my website using WordPress (as CMS) and Bootstrap (as front-end). Now, I've been pretty successful at doing so, but I have one specific problem. I have a tutorial website and ...
0
votes
1answer
47 views

the 'save_post' event triggers when I want to start a new post

I am trying to add a form for image upload for a custom slideshow for every post. The custom post type is called 'product'. The following snippet creates the new post type. ...
0
votes
1answer
30 views

Searching post types

Is it possible to take a user input from a search form, use that to search a custom post type via the WP_Query class and then redirect the user to a page template to display the results? For example, ...
0
votes
0answers
32 views

How do I proprely navigate through my custom post types?

I want to redesign my website using WordPress and Bootstrap. I did most of the work, however, I have trouble navigating through my pages. Before I tell you anything, just want you to know that my ...
0
votes
1answer
73 views

Function not working on live server but every thing is fine on localhost

I am using a class to add featured images to the taxonomy terms , followed the tutorial on http://en.bainternet.info/wordpress-taxonomies-extra-fields-the-easy-way/ this is the code i used inside my ...
1
vote
0answers
88 views

How to add meta boxes(repeater fields) from WordPress back end?

I have a custom post type 'service'. Each service will have items. For each item there would be 'name of item' and 'price'. Earlier i created meta boxes for 5 items i.e 10 meta boxes in total, which i ...
0
votes
1answer
39 views

Displaying a custom post types custom taxonomy value?

I've got a custom post type with multiple custom taxonomies + metaboxes. I've used multiple approaches from the codex and other on line resources but none seem to work. I basically want to display the ...
7
votes
3answers
142 views

Reducing the use of global $post

When creating meta boxes, in each meta box function it seems a reference to the global $post is passed as a parameter ($event). I prefer this as it seems consistent and less likely to fudge the $post ...
0
votes
0answers
22 views

Wordpress theme-menu-page & siblings position

I'm registering theme menu page using following lines : add_menu_page(__('myTheme', 'myplugin'),__('myTheme', 'myplugin'), 'edit_posts','mytheme','my_plugin_dashboard', 'dashicons-forms', 30); ...
0
votes
1answer
19 views

How can I detect a chosen Isotope layout option from within Javascript to generate appropriate layout?

I am trying to make a custom gallery post where a user may select Isotope layout modes (masonry, packery etc.). I don't want to create a custom template for each layout mode and then get it depending ...
0
votes
0answers
49 views

Add “post option” support parameter in custom post type using Hueman Theme?

I created a custom post type and I want to add "post option" in my custom post type where in I would be able to select if I would include a sidebar or not, a layout option. I would like to ask if what ...
0
votes
0answers
27 views

Insert custom post data in to MailChimp campaign email

I'm interested in injecting custom post type data in to MailChimp emails via their API. A simple undordered list of links to each post. After researching this and reading through MailChimp's ...
0
votes
1answer
31 views

Get all metadata for a given custom post type

I'm using a plugin that allows me to add people profiles as a custom post type, with several custom fields used for specific information. These posts are then output via shortcode on the relevant ...
-1
votes
1answer
42 views

wordpress post_where set only for my costum post type

in my Wordpress plugin i used the post_where filter but it's effect all other post type of my site. my question is how to set this filter only for "property" post only add_filter('posts_where', ...
0
votes
1answer
55 views

How to set YouTube video as featured image?

I am trying to have all my posts with post_format set as video, have said video as the featured image. Here is what I am working with thus far but I need some help: if($post_format == 'video') { ...
0
votes
0answers
22 views

How to solve performance issue caused by custom post type overview with 20k+ custom taxonomy terms

For a custom post type I added a custom taxonomy which contains 20k+ terms. This is causing some serious performance issues for both the custom post type edit screen (which should be solved removing ...
0
votes
0answers
23 views

Page Titles and Slugs Change at random

My Page Titles and slugs for a single custom post type keep changing and at random. I set them to a specific name and slug and if I wait long enough the both are changed to a new page on the site. ...
1
vote
1answer
43 views

Custom post type templating problem

I have a custom post type named 'product', with taxonomies 'brand' and 'type'. I'd like to have Archive Page A: sidebar with all the 'brand' terms linking to their respective archive page list of ...
0
votes
1answer
36 views

How can I give CPT archive correct body class?

I've created multiple custom post types with archives set to true with a custom slug. However, all of these archives have the body class of blog and home and no class related to the post type. I'm ...
1
vote
0answers
7 views

What's the best way to query for currently running Wordpress events [duplicate]

I have a custom post type 'events' which has two extra fields. start_date and end_date. Start date must be set but end date is optional. I want to show events that are upcoming (after today's date) ...
0
votes
0answers
30 views

How to add custom post type taxonomy select to template page?

i have a custom post type "location" that have custom taxonomy "continent" (Asia,America...) i also have a page template "Loacation map" that i want it to show only loacations from specific continent ...
0
votes
1answer
80 views

Looking to Customize YouTube Video Embeds

I am looking to embed youtube videos into my posts and publish them as custom post types (videos). I would like to be able to append the options for getting rid of the information bar, starting the ...