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

learn more… | top users | synonyms (1)

0
votes
1answer
10 views

WP_Query: Posts within category OR custom post type

I don't like to bother you guys, but this is already driving me nuts. I have a legacy post model within a specific category called 'listas-2' that used shortcodes to show some fancy things. Now I ...
0
votes
1answer
18 views

Comments not enabled for custom post types

I don't get this at all. I've looked online and I think I did everything I was supposed to, but my custom post type does not display a comments form. In functions.php. where I define the post type I ...
0
votes
1answer
44 views

Fetch post meta in the same query as the main loop

I have a custom post type "staff" and each as a custom field "_staff_purpose" (describing its function). I would like that the archive-staff.php template display all staff members, sorted by their ...
0
votes
1answer
16 views

WP_Query on custom post type not displaying, multiple loops & get_template_part

I'm having problems getting my testimonials to display. On page.php I have a testimonials section. So I have a loop that grabs the content for page.php, and then a get_template_part('content', ...
0
votes
1answer
17 views

How can I programmatically save data into custom fields that contain serialized data?

I purchased a theme from themeforest recently that has a custom post type. Here is a link to a page that's been created with the custom post type: ...
0
votes
1answer
25 views

How do I programmatically add items to a custom post type?

I have a custom post type to which I'd like to programmatically import data. I have followed these instructions and these, and I can easily do it for WP typical pages and posts. However, my custom ...
0
votes
1answer
20 views

Redirection error after posting a comment on a custom type post

I have created a custom post type called portfolio so the permalink structure for this type of posts is like this: mydomain.com/portfolio/post-name/ My issue is that after posting a comment on one ...
0
votes
1answer
22 views

Fancybox loading small white square

I know there is a similar topic with same title, but my problem is not the same.Fancybox was working perfectly in my html template, but after converting it to wordpress, images are not showing in the ...
0
votes
0answers
21 views

Create custom post on user registration and include custom fields

I am trying to create a custom post when a user registers. I found the solution below very helpful and it basically works. The problem I have is that I also need to set some custom field values when ...
0
votes
1answer
36 views

Getting custom taxonomy posts on archive page

Hi I am not sure if the question is understandable or not but what I am trying to achieve I will explain. I have a custom post type called menu item and custom taxonomy called menu item type. CODE ...
0
votes
0answers
14 views

Rewrite pages and custom post type

I created a post type named soft_drink with a rewrite rule of /my_soft_drinks/%soft_drink%. my_soft_drinks is also a page slug. In my menu structure has the page soft_drinks parent submenu items. When ...
0
votes
1answer
24 views

orderby parameter not working in custom query

I have a really strange issue for a site I'm updating... All I want to do, is have it so that the posts come in descending order instead of random. I have the following code, but when you change it ...
0
votes
0answers
24 views

Show Custom Field

i am using WCK - Custom Fields and Custom Post Types Creator. I am have code for show image. <?php $my_meta = get_post_meta( $post->ID, 'my_meta_name', true ); if( !empty( ...
0
votes
1answer
25 views

Repeatable WordPress custom fields in a metabox

I would like to create a meta box where the user can add or remove a simple input field that holds an image url on posts.
0
votes
2answers
44 views

How to add multiple images to custom post type?

I would like to create a simple plugin to add multiple images to a custom post type. I have created a plugin to add a single image to a custom post type, but I am unable to figure out how to add ...
0
votes
0answers
14 views

Archive.php is not displaying tags

I have a fairly standard "if" construct to detect what archive.php should display (see below) I also have a custom post type and a custom category. When a user clicks a displayed category (taxonomy) ...
0
votes
0answers
7 views

auto order posts of custom posttype by title

i have a custom posttype which has more than 50 posts... i want to reorder alphabetically ...so that each time i post anything the system automatically reorders... plz dont suggest post order plugin ...
0
votes
1answer
10 views

Unable to get the upcoming events for custom post

I have custom post ='events' and there is custom field 'event-start-date' for each events. I want to show the upcoming events for which I am using the following code. $date_today = time(); ...
0
votes
0answers
16 views

Appropriate hook for filtering the posts from the admin page

I am currently developing a custom post type and I would like to know which hook I should use in order to filter posts by category. Can anyone please tell me how to do this?
0
votes
2answers
72 views

Filter second dropdown (tax) based on first dropdown (cpt)

I've been googling and attempting this for over a week now with no success. I have a few custom post types (books, films, music etc), and a custom taxonomy (location). On my frontpage, I have two ...
0
votes
1answer
22 views

posts_nav_link on single post template

I have a post type called journal and on the single-journal.php template I am querying the rest of the journal posts like so: <?php query_posts( array( 'posts_per_page' => 4, ...
1
vote
3answers
40 views

Adding Custom Taxonomy to WordPress default Post type

I am trying to add custom taxonomy (tags) to WordPress default post type. because I wanna use that taxonomy for custom post type as well. // Register Custom Taxonomy function tag_synchro() { $labels ...
0
votes
1answer
11 views

How to retrieve the permalink for a specific (custom) term?

I would like to display the list of categories related to particular post? <?php while ( $faktory_panes_query->have_posts() ) : $faktory_panes_query->the_post(); $post_id = ...
1
vote
2answers
38 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
14 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
20 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
14 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
1answer
13 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
28 views

Jquery colorbox doesn't have navigation arrows for custom post type [on hold]

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
23 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
1answer
30 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
10 views

Pre-populating Formstack option with Custom Post Type titles [on hold]

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
20 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
10 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
33 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
39 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
13 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
29 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
1answer
25 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
17 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' => ...