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

learn more… | top users | synonyms (1)

0
votes
0answers
13 views

How to get a single archive page to display my various custom post types respective terms?

Is there a way to make a single archive show the respective terms/categories of multiple custom post types ? So far i have been able to make use of a single archive.php to display my various custom ...
0
votes
1answer
21 views

Commas not displaying in implode

I'm trying to separate some taxonomy terms with a comma, but I can't see to get the commas to show correctly. Here's what I got: <?php $terms = get_the_terms($post->ID,'type'); foreach ( ...
0
votes
0answers
27 views

Reverse ACF relationship field

I am using a ACF relationship field to associate data to one another (what members belong to a committee). I now want to reverse that relationship so that you can see what committees the member ...
1
vote
1answer
49 views

window.send_to_editor and jQuery .attr() conflicts with multiple custom upload image meta boxes

I have added two custom meta boxes to a custom post type. One is to upload an image to be stored in a custom field value for a "headshot" and the other is to upload an image to be stored in a custom ...
0
votes
0answers
30 views

Custom Homepage As Single Page or Custom Post Type?

Conceptual question for the WP community: I need to implement a custom homepage for a new site. It has some custom stuff going on but nothing too crazy: 4 big images, a carousel, some calls to action ...
-1
votes
1answer
30 views

Showing specific post in order of array wp_query

I have displayed some specific post ID's in a custom template with wp_query. I am struggling to figure out how to make these in order. I want to show 1682 first and 1540 last. They do not show this ...
0
votes
1answer
14 views

does wp_insert_term link the term to a certain post ID?

I'm using wp_insert_termto add a custom taxonomy like this: wp_insert_term( $_POST['city'], // the term 'property-city', // the taxonomy array( 'description'=> ...
0
votes
0answers
30 views

How to loop through custom post type posts

I want to display posts from a custom post type. <?php $args = array('post_type' => 'tribe_events'); foreach($args as $arg) { $loop = new WP_Query( $arg ); while ( ...
0
votes
0answers
22 views

Why is my custom post type shown in the wrong place?

I'm using a template which shows the post formats pretty nice, but I don't think the WordPress way of making post formats is very user friendly. Therefore I have created my own custom post types by ...
0
votes
0answers
7 views

Subscription to then post/edit a custom post type

I'm trying to find a way of creating a sign up page where a user signs up with a monthly recurring fee to then add/edit one custom post type and ACF custom fields from the front end, if the users ...
-1
votes
0answers
26 views

Warning: Invalid argument supplied for foreach() on category selector

This is for users to select a category for their post on the front end. It has been working but I noticed in the source code if you inspect element on any category in the drop down you see Warning: ...
0
votes
1answer
42 views

Change Slug of a Custom Post Type

I use a plugin that creates a custom post type with a slug that I am wanting to change. I don't want to overwrite the plugin files, so I'm wondering how I can change the slug using a separate ...
0
votes
0answers
24 views

Wordpress Permalink Custom Post type

For the Permalink on wordpress setting I have /%category%/%postname%/ This will show Post in different category like /blog/post_title_1/ or /event/post_title_1/ but now I have some Custom Post ...
-1
votes
0answers
7 views

How to upload DRAFT custom posts on cloud in wordpress and show only published posts at backend

I have many custom posts saved as "DRAFT". So they are making wordpress admin slower. How can I remove these DRAFT posts from my admin or can I upload these DRAFT posts to cloud and regain them ...
0
votes
0answers
29 views

Different post types arranged on one page

Lets say I have a wp-site with three pages: "Home", "Project" and "About". "Home" and "About" are static pages, and "Project" has sub-pages. I want to add content to the sub-pages, in form of posts, ...
0
votes
0answers
30 views

How to link 2 different post types programatically

I've created 2 custom post type: Course and Tutor: <?php /*** Registering Course post type ***/ function px_course() { $labels = array( 'name' => 'courses', ...
-2
votes
0answers
19 views

Featured image upload option not working properly?

I'm trying to make a new plugin. I hope it's maxim complete. but now I face a problem. When install my custom plugin then the Featured image upload option not working properly. It's show like a media ...
0
votes
0answers
18 views

Creating multiple CPT posts from one Gravity form

I'm attempting to have Gravity Forms create two post types in one form, based on data in the form. The two post type slugs are teardown and engine, and it's successful in creating both posts, but ...
0
votes
0answers
30 views

Using get_template_part() to modify single.php for a custom post type

I have a custom post type plugin called shows that has custom meta such as host, time, length, etc. I want to make it theme independent and require minimum coding for it to work across a lot of ...
-1
votes
0answers
20 views

Wordpress URL - Sessions, Cookies or GET using different Custom Post Types

Projetct of Advertisement System Custom Post Types: States/Cities - localhost/category/state/city Coupons - localhost/site/coupons/post-name Ads - localhost/site/ads/post-name Enterprises - ...
0
votes
1answer
70 views

flush_rewrite_rules on every register_post_type?

I'm stuck in an awful situation and I think it's because I've registered 5 post types but calling flash_rewrite_rules() function just once, so I have this question: Should I call ...
0
votes
0answers
36 views

Custom post excerpt not translating in WooCommerce product page

I am trying to show the translation of an excerpt of custom post that is associated with a WooCommerce product. The excerpt always shows in default language but using the same code used to work for me ...
0
votes
0answers
40 views

How to add qtranslate lang switcher button in custom admin page

I have my custom post type "soto_property" and a custom admin page with URL "/edit.php?post_type=soto_property&page=properties.php" in my wordpress site backend. I have used "qtranslate-x" plugin ...
0
votes
1answer
33 views

Is it possible to add query parameters on the archive page?

I have a custom post type (works), and an archive page (archive-works.php). I would like to hide the non-public posts from the archive page, so I added a custom meta box. I also modified the query to ...
0
votes
1answer
13 views

How to intercept publish post for a custom post type “event”

I am trying to write a plugin that copies a custom post type "event" from one blog to another. The code for copying I already have working but I cannot seem to get this "add_action" hook to work when ...
0
votes
2answers
47 views

Ideas to connect external database table to wordpress posts as custom field source

I have a custom database table within wordpress database.. I filled this database with data and wordpress posts table with matching ids an example would be... wp-posts table has id - title ...
0
votes
0answers
24 views

how to get the checkboxes check in custom plugin

maybe this is a stupid question but I just can't figure it out. I have a custom post type which has some submenus added. In one of the submenus I would like to add check boxes with the title of a ...
0
votes
0answers
29 views

Archive page for custom post not displaying

I'm currently using the SuperCPT I created a custom post type called "portfolio" and a custom taxonomy called "portfolio-category." Originally, everything was working fine, but I wanted to remove the ...
0
votes
0answers
32 views

Add a product custom field's value to custom tab

I would like to add some custom tabs to the product screen. The values of these custom tabs would be the values of the custom fields assigned to the product. I'm using the following plugin to add ...
0
votes
1answer
35 views

Create custom WP_List_Table in post_type

I have a post type named "case". I want to create a "Sub-page" to list only my "cases". And add some custom HTML (search box, some labels, logos, etc..) Anyone knows how can I do this? Code to ...
0
votes
0answers
13 views

Displaying multiple custom post types in single post type at admin section

I want to display different custom posts types in single post in admin section. how i can accomplish this. I have 3 posts which are Events, Members and Guests. I want to display these 3 posts like ...
0
votes
1answer
18 views

How to add post reference field to a plugin?

I am trying to add a field to a custom post type through a plugin I am creating. One of the fields I need is a post reference / link to field. Any ideas on how to do this? In the WYSIWYG when you ...
1
vote
0answers
38 views

Adding a metabox on a CPT's submenu page

I have a custom post type registered and a submenu page for some admin actions for the CPT. This page has some items listed in a WP table. I want to add a meta box just below those items. This is ...
0
votes
0answers
16 views

Custom post type getting duplicate permalink

I'm trying to make a new custom post type as "Page" with non-based in URL like... function theme_setup(){ register_post_type('Hello',array( 'labels' => array( 'name' => ...
0
votes
0answers
18 views

Custom Post type design for an ordered list of posts

i'm developing a site centered about user-submitted stories. Logged-in user should be able, when visiting a story, to add it to a custom ordered personal list. Each user can create several lists. ...
0
votes
1answer
34 views

Test date object against previous date in loop

I'm working on a page which displays a list of radioshows sorted by date and time. The radioshow is a custom posttype with a name, pic, description and date/time info. There is a variable number of ...
1
vote
1answer
37 views

Allow users to create posts without logging in?

I am working on a site where users can share their story. Every story is a blog post. I don't want that they mail me the story and I publish them, I want to provide them a form where they provide the ...
0
votes
3answers
91 views

Custom Post Type homepage template

This is what I want: I have made a Custom Post Type in my theme and it shows in my home too, but the problem is that tha CPT takes the same elements and style of a default post in Wordpress, how I can ...
0
votes
1answer
50 views

Full-Ajax Theme: parseJSON error while building a JSON object from a Wordpress custom template

Trying to make a full-ajax navigation on my new portfolio, I read online on a few different blog that building the templates using JSON would be easier in order to treat the datas however I want. It ...
0
votes
1answer
22 views

disabel for custom post Auto Upload Images

hi can i disable this plugin for custom post type thanks https://wordpress.org/plugins/auto-upload-images/ thanks
0
votes
1answer
22 views

how to echo meta tag in header using php

I need to display a meta tag in header for singular custom post type "communications" like this: <meta name="citation_title" content="single post title is here" /> I tried to use this code : ...
0
votes
1answer
32 views

Getting ACF relationship field information

I am trying to use ACF Relationships to associate members to different committees. On the front end, I want to have the committee name and the board members that are associated with them. I have ...
0
votes
1answer
29 views

Custom Loop Event Page

I need to create a loop in an event page with pagination of 10 posts per page. The way I want to do it is a little bit complicated. For example, with current date May 1, 2015: January 1, 2015 - ...
0
votes
1answer
41 views

Custom Post Type only display items created by user

I've used the following tutorial to register a new post type and restrict a custom role to that post type: ...
0
votes
0answers
23 views

Multiple slugs for a Custom Post Type

A custom post type can be registered with one slug (e.g. products) register_post_type('products', $args); How can I add multiple slugs to the same Custom Post Type? ...
0
votes
1answer
36 views

Modifying date filter on admin page for custom post type to link to custom field

Apologies if a similar question has already been asked, but I can't seem to find the exact functionality I am looking for. Basically I have a custom post type (sermons) which has 'recorded_date' as ...
0
votes
0answers
14 views

Set page to parent for all instances of custom post types

I have a custom post type, like this: $args = array( 'label' => 'project_post', 'description' => 'Project', 'labels' => stuff, 'supports' ...
0
votes
2answers
34 views

query_posts adding extra code to homepage

I've made a custom post type "brands". I have a custom template that display's these brands on this page: http://www.southernms.com/new/brands/ I also want these brands added to the homepage. So I am ...
1
vote
1answer
70 views

Setting Default Category for Custom Post Type Upon Autosave

I've been searching for a couple hours and consulted multiple posts, but I seem to get this to work. I have this weird bug where users cannot see their drafts of a custom post type if they don't ...
0
votes
1answer
44 views

Create Wordpress bio without backend

I am trying to give users the option to create a user bio, so that it will be displayed in author boxes. However, I do not give my users the option of going through the backend of my website. How ...