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

learn more… | top users | synonyms (1)

0
votes
0answers
71 views

'Blog Archive' suddenly appeared on custom post type; how to remove

I have all of a sudden started seeing Blog Archives Post navigation (as below) rather than every post in that custom post type. I changed something in the Wordpress SEO plugin which has since been ...
0
votes
1answer
856 views

remove support for 'Categories' for a custom post type

How would I go about removing support for Wordpress 'Categories' for a custom post type? I've created a custom taxonomy for the post type, so there is no need for the standard categories. Oddly, I ...
0
votes
0answers
129 views

Static page teaser with Genesis framework

I am building a site where the front page is static and a separate blog page. I would like to place 2 or 3 teasers from the blog page on the home static page. They would need to be dynamic so as to ...
1
vote
1answer
2k views

Custom Taxonomy as checkbox or dropdown

I have registered a custom tax to my CPT. On the edit screen the tax meta box appears with an autocomplete field. Is it possible to display it as checkboxes or dropdown instead?
1
vote
1answer
553 views

How do i calculate the total of values of custom fields in custom post types?

So the title is a bit unclear, but here is what i have: Custom post type: Projects Custom post type: Investments        + Custom field: Amount And i have one page ...
0
votes
1answer
133 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
3k 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
615 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
100 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 ...
0
votes
1answer
218 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
148 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 ...
0
votes
1answer
729 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
184 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 ...
0
votes
2answers
3k 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
637 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
216 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
132 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
63 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
74 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
48 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
2k 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
61 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
414 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
202 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
36 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
58 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
175 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" ...
0
votes
1answer
3k 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: ...
0
votes
1answer
100 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
727 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 ...
1
vote
2answers
886 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
2k 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
983 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 ...
1
vote
2answers
2k 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
127 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
36 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
182 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, ...
0
votes
1answer
10k 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
63 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
181 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
28 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( ...
0
votes
3answers
344 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
103 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 ...
2
votes
2answers
1k 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
92 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
216 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
800 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
728 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( ...
3
votes
3answers
5k 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
96 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 ...