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

learn more… | top users | synonyms (1)

0
votes
1answer
272 views

Getting WordPress to store 0 values for custom post type meta

I've created a very complex custom post type system for a football website and am using custom meta boxes to store various match stats. To decide whether or not I should display a stat I check ...
0
votes
1answer
5k views

How to filter posts by categories?

I have a custom post type and now I need to filter the projects according to their categories and without being directed to another page. Also I need to have all category which would show all the ...
1
vote
3answers
2k views

Can't publish custom post type - “You are not allowed to edit this post.”

Hey guys I've created this post type but when I click the publish button I receive the message: You are not allowed to edit this post. Have I done something wrong in my code to disallow anyone ...
1
vote
1answer
122 views

Get posts between custom dates

I created an event CPT and a meta box with a date. I saved the date as post_meta in the form dd.mm.yyyy. Now I want to create a shortcode that queries all posts which's dates meet the condition (e.g.)...
0
votes
1answer
378 views

How to output the content of a Custom Post Type from a drop down form?

I have a Custom Post Type called office and I output a list of names of these Offices using a dropdown menu from a thread here on WPSE: Dropdown list of a custom post type. What I would like to do ...
0
votes
2answers
190 views

Template files for Custom Post Type and Taxonomy

I've got a custom post type called "properties" and two custom taxonomies called "type" (office space, retail space, etc.) and "location" (new york, chicago, etc.). I have created "archive-properties....
0
votes
1answer
1k views

WordPress custom post type category pagination 404 Error

This problem is giving me a headache and I was wondering if anyone knew how to fix it. I have a custom post type called Review. Here is how it is defined: function codex_custom_init() { $args =...
0
votes
1answer
245 views

Add custom taxonomies as class names to an archive page of custom post types

I thought this would be easy enough, although it's proving quite difficult. My end goal is to integrate jQuery isotope into my wordpress portfolio. I've gotten the isotope to work outside of wordpress,...
0
votes
2answers
5k views

Custom post types: change “read more” text

I'm developing a website that has a blog section as well as a "free monthly download" section set up as a custom post type. On the home page I'm displaying excerpts with "read more" links for both ...
1
vote
2answers
929 views

Prevent page slug from interfering with custom post type archive permalink?

In my plugin, I'm creating a custom post type that has an archive and uses the rewrite parameter to choose a slug: $args = array ( 'public' => true, 'has_archive' => true, 'rewrite' ...
0
votes
0answers
265 views

How to order custom posts type by number of facebook likes

I have a custom post type called "quotes" and I want to order these posts by facebook likes in the category page. How can I do this? Thanks.
0
votes
0answers
194 views

I want to create a drag and drop image collection in wordpress custom post

In my wordpress add new property (custom post type) page I want a small area where i can add multiple images with standard uploader and then drag and drop to reorder them and then show them on front ...
0
votes
2answers
64 views

Wordpress URL Problems and Layout

Why is that the layout of 2 homepage is different. When i put http://localhost/mysite/home/ the layout looks ok and the blog list is there.. there's no problem here.. but when i click home it ...
0
votes
1answer
91 views

Display only a single CPT

I have used the CptUI plugin to create a 'Products' CPT. The admin side of things seems to work fine but I can't quite get the front end to display how I'd like. For example I create a product, say "...
0
votes
0answers
59 views

Reading csv from specific directory and insert it to custom post type (cron job)

Need a comprehensive cron job script to read .csv data uploaded regularly to specific folder. Will insert data to custom post type only if csv exist base on cron job current date. Any suggestion of ...
0
votes
1answer
6k views

how to create my own edit.php admin page code or template for my custom post type

Most plugins try to hide the components of the edit.php screen on wp admin and replace it with meta boxes to create the needed layout and fields for the custom post type. But this means that there is ...
1
vote
0answers
84 views

Limit Search to Post Type With Apostrophe return search not found

I limit the search to post type in wp default search engine by adding a hidden field. <input type="hidden" name="post_type" value="books" /> But I got a problem when the search string that ...
0
votes
1answer
550 views

Custom post class, generate unique id from 1 to x depending on amount of posts?

I am building a custom post type, where I have a little trouble generating the ID:s the way I want to. The idea of the post class is to generate a table with ID and post title. I wonder if it is ...
1
vote
0answers
245 views

Get url.com/post_type/taxonomy/term work!

I'm having trouble get what I want by mixing custom post types and taxonomy. I want to run this: www.url.com/post_type/taxonomy/term In my case this: www.url.com/dossier/theme/sante (sante is a term ...
0
votes
1answer
44 views

Custom Post Types - Taxonomy and Customization

I'm trying to learn Custom Post Types and I have some questions. I'm trying to add a categories menu but that doesn't seem to be working for some reason - I don't get an error or anything. Here's my ...
0
votes
1answer
70 views

Problems with a custom meta_box

I got some information on here which I am using for an Events site I am developing. How to add option box in "Edit Post" plugin API? However, I have changed the checkboxes for text inputs ...
0
votes
1answer
253 views

Submiting custom form give error 404

I have custom search form on category category.php list template with following code: <?php $searchresults = site_url('/?p=1365'); ?> <form class="search-slide" id="search-slide" name="...
1
vote
1answer
6k views

Edit/Customize the Single Page of a Genesis Sample Child Theme

I got my 'Page' and 'Blog List' Page working.. But when i click on one of my Post... the Layout is different .. I want to edit it. Where can i find that? I tried to edit it.. <?php /* WARNING: ...
1
vote
1answer
327 views

Archive template for custom post type only lists first 10

Here is my template for archive-people.com: It currently only shows the first 10 people. I'd like it to show everyone, not just the first 10 people. <?php get_header(); ?> <div id="content" ...
0
votes
0answers
1k views

Adding rewrite rules to Custom Post-type mixed with Taxonomy

I turn to you because I can not find any solution to my problem. I created 3 custom post types "Actualités", "Dossiers", "Vidéos" (I'm french :D) I created 1 taxonomy: "Thématiques" with the ...
4
votes
2answers
5k views

remove custom post type permalink

I've registered post type with following -- $holidayLabels = array( 'name' => __( 'Holidays'), 'singular_name' => __( 'Holidays'), 'all_items' => __( 'All Holidays'), '...
2
votes
1answer
4k views

Custom Blog Post Listing in Genesis Sample Child Theme

I want to add several images and divs and also customize the look of my Blog post listing... But i can't find the way to do it. Here's the Blog Template code <?php /* WARNING: This file is ...
2
votes
3answers
2k views

Get post type in header.php

I'm creating menu in wordpress and I would like add class="active" to link when its page is active. I'm not using inbuilt wordpress menu feature. I'm making menu hardcoded in header.php because ...
3
votes
1answer
6k views

Permalinks: custom post type -> custom taxonomy -> post

I am having trouble working with wordpress' rewrite rules, and could use some help. I have a custom post type called shows. All shows have a single custom taxonomy category show-category. A show ...
0
votes
0answers
166 views

Why are my wp urls showing page not found?

I recently changed a page slug url in the edit area and saved it from flood-maps to floodmaps. There was an issue here so I then deleted the page in trash too and started a new one with the same name ...
0
votes
1answer
45 views

Update custom field value

I want to update a custom field value whenever an Editor visits a post. I want to get it done to track hits on a post by editors on my site. Not finding a proper solution or I am confused with ...
-1
votes
1answer
239 views

How to sort custom post type by multiple custom fields?

How to display posts with 'agenda' custom type ordered by custom fields 'agenda_date' and then by 'agenda_time'? 'agenda_date' is date custom fields. agenda_time is text custom fields I tried this, ...
1
vote
1answer
24k views

How to display categories of my Custom Post Type?

I have a custom post type for a portfolio: Link to the test site. What I'd like to do is to display the project categories just on top of the projects so visitors could then filter projects ...
0
votes
1answer
74 views

Custom page template not recognized with permalinks on

The custom page template shows up when I choose any permalink structure with an ID %post_id% But after I change it to any other structure which does not have post_id in it my page defaults to ...
0
votes
1answer
240 views

Metabox textarea showing whitescreen

The problem is when i add textarea i get white screen without data Below is my Code Which i got from Stack exchange. add_action( 'add_meta_boxes', 'dynamic_add_custom_box' ); /* Do something with ...
0
votes
1answer
30 views

Custom post not appearing under custom taxonomy category

Hello again Wordpress Stack, I'm having trouble getting my custom post to display under a custom category. The post in question is this: register_post_type('feature_article', array( ...
1
vote
3answers
557 views

Get template part based on custom taxonomy term

I have a custom post type and I'm trying to call up different variations of the navigation based on the custom taxonomy slug. I've done this fairly easily with normal posts, like so: <?php ...
0
votes
3answers
133 views

Strip Characters From Tag Name

I am having some difficulties trying to strip out special characters and spaces from my tags. Using the below code: <ul class="work_tags_nav"> <li><a ...
4
votes
2answers
4k views

Meta query with boolean true/false value

I'm trying to show all rental properties, first by all properties that have not been rented, and then by all properties that are currently rented. There is a custom post type 'rent' with custom post ...
0
votes
1answer
151 views

How to loose the image 'alt' attribute in my custom post type?

I've created a custom post type but now I cannot seem to figure out how to loose the image name (under the image) once a project is opened. When a project is clicked all I need it to show except for ...
0
votes
2answers
325 views

Echo custom field value

So I am customizing the [CPT Bootstrap Carousel plugin][1] to fit my needs. I have added custom field support to the custom post type, where the custom field is suppose to add a button on the carousel ...
0
votes
2answers
1k views

Related posts in all categories of current post (custom post types)

A client of mine has custom post types that they set up using a plugin rather than defining them in the functions.php. (So, YARPP for the solution won't work). In this custom post types, they have ...
-1
votes
1answer
877 views

Template for custom post type shows all posts instead of just one

I wrote a simple plugin to create a custom post type named "people": add_action( 'init', 'create_person' ); function create_person() { register_post_type( 'people', array( '...
12
votes
3answers
14k views

Capabilities and Custom Post Types

I have a custom post type that I'd like to restrict access to certain roles however, I've already added content using the custom post type and now I have to make them restricted. The capability_type ...
0
votes
0answers
128 views

query_post while (have post) get_template_part()?

My goal: Is to give the user the ability, if they so choose, to create a new category. I have the current categories saved in a separate php file and call them in using get_template_part(), there ...
0
votes
2answers
1k views

How to add href=“” custom post type?

I am trying to modify the CPT Bootstrap Carousel plugin, so that I can add a link button to the carousel items. The plugin creates a custom post type called cptbc_post_type, this post type is ...
3
votes
2answers
1k views

How to create notification on frontend using heartbeat api for multiple custom post types

How can I get correct action hook on publish_posts for multiple custom types ? I have a following problem, I can use this hook for posts or single custom post_type, but I don't know correct hook for ...
1
vote
3answers
2k views

How to set individual capabilities on a taxonomy? Or how to re-register an existing taxonomy?

The default taxonomy, category. By default, only those with the edit_posts capability can assign categories during post creation/editing. I have a role with very limited capabilities. I want to let ...
0
votes
0answers
36 views

Custom Post Type does not appear in index page

I've made a custom post type with Custom Post Type UI plugin, but it doesn't not appear in my index page nor can i see the permalink page or even the preview page (I get a 404). I am using the most ...
0
votes
2answers
74 views

Create custom fields on a post

I want to have a very specific post "type". I would like to get rid of the title and content box, and add a "Name" field and an "Age" custom field. This way when I go to create a new post, it's like ...