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

learn more… | top users | synonyms (1)

0
votes
1answer
12 views

Custom Post hierarchical to custom taxonomy

I have created a custom post type and a custom taxonomy. The issue is that I can not make the custom posts hierarchical with the categories it is in. I have the following code, function ...
1
vote
1answer
11 views

Query posts and custom post types within the same category

i have a filter on my template which returns posts from a given category and displays them in a slider gallery. This is the code: <?php if (is_page()) { ...
1
vote
0answers
16 views

Is it possible to have a custom post type with feed but without the archive?

In Wordpress 3.9.2 I couldn't find the way to have a custom post type which would have the feed permalink like this: example.com/custom-post-type/feed/ But didn't show the archive (show 404) ...
0
votes
0answers
10 views

Filter RSS feed for custom post type to events for next 7 days only

I'm trying to create a custom RSS feed that shows posts from the custom post type 'events' for the next 7 days ahead only. The feed is already sorted by event start date order rather than published ...
0
votes
0answers
13 views

Cherry Framework Categorys not working on custom post type

I am using the Cherry Framework. In a child theme i have added a new custom post type and set it to use the built in category and post-tag taxonomies. I have added this to my theme.ini in my child ...
1
vote
0answers
9 views

Display 1 Post per taxonomy with polylang

I am trying to make a loop where I display all my taxonomies with the first post of every taxonomy. It's the taxonomy "customers" and I want to display every first portfolio-CPT of the customer. I ...
-1
votes
0answers
25 views

Jquery colorbox doesn't have navigation arrows for custom post type

I have custom post type events . For each post i have an embedded gallery with all images being linked to media file.I am using the following code to get the gallery and display all the images for a ...
0
votes
0answers
20 views

Meta-Box to add multiple items one at a time and on publish save all

My example custom content type is for recipes. There will be a meta-box for ingredients. In this meta-box there will be three attributes and a "add" button. Name Measurements Notes Add Button My ...
0
votes
0answers
12 views

Redirection loop error after login from a custom post type post

I have created a custom post type called portfolio so such posts have an url like this: mydomain.com/portfolio/post-name/ This is fine so far, however i just found I am having a problem with my ...
-1
votes
0answers
8 views

Pre-populating Formstack option with Custom Post Type titles

So a client has an "Employment Application" on Formstack. They create a post on WordPress in a CPT title "Job Openings". The titles of all the "Job Openings" are then placed into a dropdown list on ...
0
votes
1answer
17 views

How to programmatically add elements in a custom menu

In my WP custom menu, one item has a dropdown list below it that lists all instances of some CPT. The only way I know to do that is by creating the list somewhere else in the DOM with PHP and then ...
0
votes
0answers
9 views

User field and access post

I’ve create two custom post type (all'code here). I use the ACF Plugin to create custom post and 've create a relationship user field with the field name "sleziona_cliente". I create a cpt post and ...
1
vote
2answers
30 views

Cherry framework adding custom post type

Looking for some information as developer docs for the cherry framework seem to be non existent. I am trying to add a custom post-type with the following code in my theme-init file: (this code works ...
0
votes
0answers
6 views

Media Uploader is not working in default rich text editor in my custom plugin

I am working on my custom plugin that will store records in its own database tables. I am willing to add contents via WordPress default rich text editor. I found some code on WordPress stack exchange ...
0
votes
1answer
33 views

Values inside a custom field to determine which category posts to display

I am facing a little problem whilst trying to display posts, from certain categories, on the front end. I've created a custom field whose key is 'related_categories' and I've different categories with ...
0
votes
3answers
12 views

Add admin script to several post types

I have found several tutorials how to add script to certain post type.like add_action( 'admin_print_scripts-post-new.php', 'banner_admin_script', 11 ); add_action( 'admin_print_scripts-post.php', ...
0
votes
0answers
15 views

Display random posts from custom posty type

I am trying to display my posts in a random order and selection using the following code with no luck. Any ideas whats going wrong? <?php $args = array( 'post_type' => 'publicity', ...
0
votes
1answer
16 views

Is there a way to make child posts inherit parent post terms?

I have a few custom posts that go from Parent to great grand children. I assign the parent post a term from a custom taxonomy that I would like for all of the child posts to inherit. Is there a way to ...
1
vote
1answer
27 views

Add an option in a builder

I try to add a list of project in the builder of DIVI theme. I have already managed to insert the project_tag list like this : <div class="et-pb-option"> <label ...
0
votes
1answer
16 views

remove custom post type ulr

I have a custom post type called portfolio with three categories. If i make post with it, the url looks like this. http://skateflix.se/?portfolio=route-one. Every fix i tried, every plugin gives me ...
0
votes
0answers
19 views

Page to show custom posts and one category

I want to show all my custom posts and category ID=15 in a page. I managed to call my custom posts as follows: $type = 'my_custom_posts'; $args=array( 'post_type' => $type, ...
0
votes
1answer
16 views

CPT, Custom User Role and problem with user manager

i've create a custom user role using this code: /* aggiungi ruolo */ add_role('brokers', 'Brokers', array( 'read' => true, // True allows that capability 'edit_pages' => true, ...
0
votes
1answer
33 views

2 wordpress site same database

I have twoo websites on worpdress platform: http://fian.ro/ http://nuovafattoria.ro/ On the server there are 2 different folders with same files, same config but one of them has: ...
0
votes
0answers
49 views

70.000 custom posts on my site

My site have more than 70.000 custom posts. Admin panel not show all posts. how to fix it ? Month filter: more than 4.000 posts. it's normal.
0
votes
0answers
23 views

URL/Permalink customization for Taxonomy/Term archive & post

I have a CPT called "Provider", taxonomy called "State" and a term called "Alabama". Is it possible to change the following URL structure from: 1. http://localhost/state/alabama (to view all the ...
3
votes
1answer
39 views

get_the_ID() is working on my local development but not on staging server

Great to see a StackExchange for WP! Ok so I'm working on pulling images and dates from piklist custom post types and I got this working on my local, BUT when I move it to WPEngine I get a white page ...
1
vote
2answers
22 views

How to call custom posts

I have this custom post: add_action('init', 'eveniment_register'); function eveniment_register() { $args = array( 'label' => __('Evenimente'), 'singular_label' => ...
0
votes
0answers
12 views

404 page is not querying my custom post

I have a 404 template page which is, obviously, designed for Not Found Pages. Within the code, I have the get_header(); where I place the global code for the site. There is a div that contains a style ...
1
vote
0answers
22 views

Adding a term name from a custom taxonomy assigned to a post link displayed by a wp_query loop based on another taxonomy

I have registered a custom post type "Animals" and also two custom taxonomies ("Vertebrate" and "Type") assigned to it, which have their own specific terms, for "Vertebrate" it will be "Mammals" and ...
0
votes
1answer
21 views

Can't display shortcode in WP_Query loop

I want to display all posts from my CPT brand. My WP_Query loop works well but the shortcode I want to use within it doesn't work. This shortcode comes with some plugin called Download Attachments, ...
0
votes
0answers
13 views

Cusom post type archive in sidebar widget counter of post

add_filter( 'getarchives_where', 'custom_getarchives_where' ); function custom_getarchives_where( $where ){ $where = str_replace( "post_type = 'post'", "post_type IN ( 'post', 'podcasts' )", ...
0
votes
2answers
23 views

Dump custom post type database

I have a custom post type filled with 7k entries by mistake. I want to empty the database for that custom post type. What is the best way to do it?
0
votes
1answer
19 views

Change custom post status to draft before today

I tried this code which I made but looks like I am not doing it correctly.. The main problem is my code fetches all posts ordered by meta value date, but I need to hide the posts from the date today ...
0
votes
1answer
16 views

Custom Taxonomy Navigation, with current menu items for children?

Is it possible to have a custom taxonomy navigation, with added active/current-menu classes if the post your on is within that category/custom tax? e.g you have a custom taxonomy called... Weather. ...
0
votes
0answers
15 views

Custom frontend post not working?

Hi I am creating a custom post front end submission. This is my code to submit the custom post details. Here the validation is not working as well as it will not submit the post. When i submit the ...
0
votes
0answers
21 views

connecting two post types or functions

Alright, so I have started asking related questions to this bout 4 times now trying to figure out what exactly I need to ask without making it too complicated. So I've got two examples of this that ...
-1
votes
1answer
24 views

Page Template for Every Custom Post Type [closed]

I'm just new in wordpress, I just wanted to ask if it's a bad practice if I'll create page template for every custom post types? I mean if I have CPT [custom post type] with different content, like my ...
0
votes
0answers
15 views

Submit the custom posttypes from the frontend? [closed]

I am working on custom post from frontend.Is there any tutorial's available. Can any one suggest me on this.. Thanks
0
votes
1answer
16 views

Rewrite slug of custom post type to include post-id

My current permalink setting is /%postname%/%post_id%/. Would like to use the same with CPT. Currently the URL looks as site.com/questions/title/ Would like to get post id at the end of the url on ...
0
votes
2answers
29 views

CPT archive as home page

I am very new to WP coding. I am working for a University where each faculty has been allocated a CPT. We would like it so that the CPT archive looks the same as the main site. I have created the ...
-1
votes
0answers
17 views

How to Create News and Magazine theme? [closed]

Hello Every One I Know How to Create and Develop blog themes for wordpress but I want learn How to create Fremwork to show posts like News And Magazine themes Not Blog themes, I mean Create theme ...
0
votes
1answer
56 views

Custom post types category

I have created a theme with a custom post type called 'project' and there is a problem. I want to show 5 different custom post type categories on a page in different portions, like posts to show on ...
0
votes
1answer
21 views

Custom post type permalink uses archive page to display posts

I can't figure out why my custom post type page template uses the archive page to display posts. I'm pretty sure I have the right files. These are the important files, regarding this issue, in my root ...
2
votes
1answer
32 views

Custom post type with specific category structure

I have successfully created a custom post type (aka "Instruction") and two different categories (aka "Program" and "Exercise"). An "Instruction" needs to be filed under an "Exercise" and an Exercise ...
0
votes
3answers
41 views

Creating themes using the one Plugin (Toolkit)

I'll try my best to explain what I'm trying to achieve. I haven't been developing with Wordpress for a while and I've hit a bit of a wall. I'm looking to get into making Premium Wordpress Themes. ...
0
votes
0answers
16 views

Repeatable fields second input [closed]

Hi Im trying to add a second input field for "Repeatable Fields"? Example: [Song Title] - URL: [MP3 URL] But I gt this error "Parse error: syntax error, unexpected '<'" array( ...
-1
votes
0answers
10 views

How to add a user dashboard page?

I'm developing a Wordpress theme for the first time and I don't know how to create a custom user dashboard page, such that when a user logs in via a custom login form, he/she is not directed to ...
0
votes
0answers
19 views

How to build a theme with custom front page and user specific pages [closed]

This is my first time building a Wordpress theme and I'm a little confused on how to create a theme with a heavily customized front page, with no header or footer and a custom layout, an embedded ...
1
vote
2answers
27 views

How does register_post_type know how and which function to use from the add_action function?

This is from the WordPress site, and I can't find my answer in the documentation. When I issue the register_post_type, how does it know which function to use? I know the init action was populated ...
3
votes
2answers
34 views

How do I Make a custom post type get a custom post template in a plugin

I am writing a plugin in which I am adding a custom post type(called 'events') using register_post_type. Additionally I want it to use single-event.php instead of the regular single.php. The current ...