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

learn more… | top users | synonyms (1)

0
votes
0answers
26 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 ...
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
33 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', ...
0
votes
0answers
23 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
43 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 ...
0
votes
1answer
78 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
45 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
70 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
40 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
21 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
63 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
26 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
34 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
54 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
37 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
21 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
42 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
23 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
19 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
42 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
39 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
103 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
66 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
24 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
30 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
50 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
52 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
29 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
52 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
41 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
113 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
45 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 ...
0
votes
1answer
13 views

Heirarchical URLs with CPT and custom taxonomy

Having a real hard time getting to the bottom of this, all I'm trying to do is create a perfectly logical URL structure for a custom taxonomy. I have a CPT: 'knowledgebase' I have a custom taxonomy ...
0
votes
0answers
51 views

Some posts appear in duplicate with paginated query

I'm querying a custom post type with some custom post meta, and then output the results. This is the query: $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $properties_query = array( ...
0
votes
0answers
24 views

Why I am getting an alert box on updating an custom post type?

Whenever I click on Update button I always get an alert box displaying "This page is asking you to confirm that you want to leave - data you have entered may not be saved." I just want to remove this. ...
1
vote
1answer
38 views

Custom post type submenu capabilities - custom plugin

I'm trying to add new custom capability so I can hide custom post type from non admins. In my custom post type I have some custom taxonomies and then 2 submenus. The administrator can see the menu of ...
0
votes
0answers
41 views

Adding custom field to permalink structure

I have a wordpress site that uses a custom post type 'external-projects'. Within that custom post type there is a custom field 'director'. What I am trying to do is rewrite the permalinks to include ...
0
votes
0answers
68 views

Custom Post Type (child) and Permalinks Rewrite Rules

I know this question has been asked a lot of times. However I couldn't managed to solve the issue I have for a few days now so if you could help me it would mean a lot to me. I have created custom ...
0
votes
1answer
55 views

Filter wp_dropdown_categories Per Post Type

I'm using wp_dropdown_categories to add a categories filter to the media library. It works fine, except it displays all the categories that are assigned to posts, but I would like it to only display ...
0
votes
0answers
33 views

Child pages in a Custom Post Type are appearing blank

I've registered a CPT with the following: function create_client_post_type() { $labels = array( 'name' => _x( 'Clients', 'Post Type General Name', 'text_domain' ), ...
1
vote
1answer
99 views

advanced search forms with 3 input text and that the main problem 3 input text

N.B. : all my work is on wordpress. I was working for an advanced form with 3 input text in purpose to show a list of hotels. The problem is i tried an infinity tricks and functions but without any ...
4
votes
3answers
107 views

Custom Posts Types using Posts Category

I'm using some custom posts types, and, I don't wanna create specific categories for each one. I'd like to use the Post Category in all my Custom Post. Here is a example of my new custom posts type: ...
0
votes
1answer
59 views

Show post count number assigned to custom taxonomy

I'm building a villa rental website, I have two custom post types named "Villa" (used to show villas) and "Destination". I have installed the CPT-onomies plugin and I use the "Destination" as custom ...
1
vote
1answer
85 views

How to solve suspected memory issue in custom WordPress loop?

I have written a plugin that adds a "Where did you hear about us?" question to the WooCommerce checkout page and shows the results (as a simple horizontal bar chart) in a wp-admin page. The plugin ...
-1
votes
1answer
77 views

How to create custom page templates with default page layout framework?

I'm writing a custom theme. Most of the content will use the regular index.php, header.php and footer.php. The index.php looks like <?php get_header(); get_sidebar(); ?> <div ...
0
votes
1answer
44 views

Custom post type pagination 404

I have a custom post type named episodes_listing and a custom taxonomy named episodes_category. My goal was to have pages like domain.com/episodes/season-one. This works great, and if I have a ...
0
votes
0answers
30 views

Custom post type clean url

I'm trying to create clean url's for my custom post type, but I can't seem to figure out how to make this work. First I followed the Wordpress codex using publicly_queryable and query_var in my ...