Custom Post Types extend the WordPress back-end to support additional, non-Post content.
1
vote
2answers
72 views
Display Posts from Custom Post Type with Category Filters
Thanks in advance for any assistance.
I have a simple 4 page portfolio site I'm trying to build for myself. The pages consist of: Home Page, Print Design, Digital, and Identity.
I have created a ...
0
votes
1answer
41 views
Missing categories for Custom Taxonomy and Custom Posts
I'm having trouble seeing why categories are not appearing for Knowledge Base and Articles. What's wrong with this code?
<?php
// Custom post types
/* faq */
add_action( 'init', 'faq_post_type' ...
0
votes
0answers
6 views
Register custom post type categories to default categories [duplicate]
How to register custom post type categories to standard default wordpress categories?
0
votes
1answer
47 views
Author template - separate custom post type by custom taxonomy term for $curauth
Basically I have a post type called photograph, I then have a Taxonomy group called "Subject" and several tax terms i.e. Abstract, freeze frame etc (Approx 18 in total) under that Taxonomy group.
I ...
0
votes
0answers
43 views
Retrieve post data via WPDB class
I'm trying to figure out doing a custom query using the $wpdb Object.
I have custom type posts, event_posts, that have meta data, images, as well as event dates which are input in the post with the ...
0
votes
1answer
23 views
Are Post IDs Unique Across all Post Types?
I thought Wordpress post IDs were only unique within each post type, so that the first instance of each post type would have an ID of 1 and they would count up from there. In order to get a specific ...
0
votes
0answers
15 views
Plugin works for default post types, but not for custom [duplicate]
I've coded a plugin that adds a meta box to the post page. When the post is published, the plugin will generate a random ID for the post, and insert the random ID and the post guid to a custom table ...
0
votes
1answer
162 views
QTranslate for Custom Post Type
How to add qtranslate-support for custom post type? Just saving text with tags OR add flag switcher.
My Custom Post Type field:
add_meta_box('project_rolesid', 'Roles box', 'project_roles', ...
0
votes
0answers
57 views
Query recent posts by author
I'm fairly new to wordpress but trying to get recent posts by a specific author. The following code displays only most recent bog posts. I am using a custom field to get the author ID.
EDIT by ...
0
votes
2answers
216 views
$wpdb returns no results with SELECT query on custom post type, works on default post type
EDIT: Adding more background info.
I've coded a plugin that adds a meta box to the post page. When the post is published, the plugin will generate a random ID for the post, and insert the random ID ...
2
votes
1answer
94 views
How can I add programmatically custom taxonomy terms to a custom type post when saving posts?
Scenario: there is a 'Recommended Books' section on the website which uses the 'book' custom post type and the 'author' custom taxonomy. I'm using Amazon Product Advertising API for retrieving book ...
0
votes
1answer
43 views
Order posts of a custom post type by the event date using FT Calendar Plugin
I am using the FT Calendar Plugin. My question is how can I order posts of a custom post type by the event calendar date?
So for instance I have a CPT named "Events" and for each event post a ...
0
votes
1answer
37 views
Displaying custom post types by category
I have been at this now for about 12 hours I just don't know what I am doing.
My theme has a home page post display scroller which shows posts from a selected category. At the moment it is only ...
0
votes
0answers
38 views
Display a custom post type list by taxonomy term
I need to show a list of custom post type classified by terms. The idea is something like this:
Service list:
<ul>
<li>
<a href="#">Webdesign (taxonomy term)</a>
...
0
votes
1answer
27 views
Roles and Capabilities in Custom Post Types
Is there a way to create one role with one capability and apply it to some of the custom post types?
What I am doing right now is ending up with applying capabilities to all of the posts..
creating ...
0
votes
1answer
44 views
Determine which template-{slug}.php is being loaded
I am trying to make a personal plugin that does specific things based on what is loaded. In this example, in my action method I want to perform one function if the currently loading page is using the ...
0
votes
0answers
28 views
get_option include <br /> in my adsense
As title said I saved in wp-options -> option_value a adsense code but when I try to display to website in the code I get some
"<script type=\"text/javascript\"><!--<br ...
-2
votes
1answer
84 views
How to display custom type posts in 4-5 column grid layout in wordpress
I just want to display my custom post type named "Phones" (list of phones and tablets) in grid layout with 4 (or 5 columns). i only want post image (featured image) along with title. I have a custom ...
0
votes
1answer
60 views
How to setup a single post page for my custom post type?
This my Custom Post Type Code
/* Job Opening */
add_action( 'init', 'create_job_opening' );
function create_job_opening() {
register_post_type( 'job_opening',
array(
'labels' ...
1
vote
2answers
55 views
How to Separate CPT From Regular Posts?
I'm just starting to populate my CPT. I want to keep it separate from regular posts. But when I go look at regular posts (in the single.php template), the Prev/Next nav includes CPT posts.
...
3
votes
1answer
189 views
CPT Template Not Showing - Getting 404
I'm developing a Custom Post Type plugin, which works fine in dev. Now that I've moved it to production, I'm getting a 404 when I try to display the template for the CPT.
So, two questions:
1- Is ...
0
votes
0answers
30 views
Wordpress Custom post type won't save properly
Note: I first asked this question on stackoverflow but didn't get an answer.
I created a plugin with a new custom post type, it works locally as it should but on one of my websites, which happens to ...
0
votes
0answers
30 views
How to display category with post title in frontpage of the custom post type
Hi,everyone.Sorry my bad English,and I hope you can understand what I mean.
In my WordPress theme, I craeted a Custom post type named "Portfolio", Because I want show the single category with list of ...
0
votes
0answers
61 views
Get image URL from media library in input
On wp-admin/post.php?post=447&action=edit for example I have a link and an input.
The link appears as follows:
<a href="#" class="button insert-media add_media" data-editor="tj_image_url" ...
1
vote
1answer
167 views
Multiple Loops On Custom Post Type Template?
I'm having some issues adding multiple loops. I have a custom post type (locations) that uses a single page template (single-locations.php). I'm trying to add additional loops to this template that ...
-1
votes
1answer
48 views
Pagination for Custom Post Type with Multiple Types
The first page shows the first results however, mypages/page2 leads to a 404 error. The following code is inside archives-mypages.php
<?php
$temp = $wp_query;
$wp_query=null;
$args = array(
...
0
votes
1answer
21 views
Query with no terms uses index.php template instead of archive.php
I'm using the Query Multiple Taxonomies plugin to get a page of search results (all of which are a custom post type - car).
If any search terms are added, so the url looks like this:
...
4
votes
6answers
272 views
Creating relationships between multiple content types
I'm working on a site where there are multiple content types in addition to the built-in ones (see list below). I'd like to establish the ability to mark related content in any direction, from any ...
0
votes
1answer
38 views
next_posts_link returns same content of 1st page
Pagination seems to work fine... I have 21 posts... and it will go to 3 pages... however... every page shows 10 posts and the same content as the first page....
<?php
$temp = $wp_query;
$wp_query= ...
0
votes
0answers
50 views
Wordpress - ABC filter/Pagination
I would like to list out the alphabet on a custom post type archive page, and by clicking on a letter in the alphabet it would link to a url that only displays posts that begin with that particular ...
0
votes
1answer
33 views
How to loop through custom posts in admin edit screen
How can I access the loop that displays all the custom posts in a custom post type's edit.php page? Is there some sort of hook for this?
I want to do some condition checking on the data that is being ...
1
vote
1answer
53 views
Why is my select meta data not saving?
I am working on a site at the moment where I need to save several different types of meta data for a custom post type.
At present I have a text input that is saving with no problem but am struggling ...
0
votes
1answer
46 views
Custom post type isn't working
I just built up a beta environment for testing my new Wordpress site. I didn't migrate the database; I did my own installation again and ported over my theme (it's a simple theme) to my new instance. ...
0
votes
1answer
28 views
Disable custom taxonomy on admin bar
I created a custom taxonomy and i want to disable the taxonomy to show on the admin bar below my custom post type. How do i disable it?.
The reason i want to disable is because the user is not ...
0
votes
0answers
73 views
How do I add a checkbox option to this custom post type code?
I have a custom post type set up and I want to add a checkbox option. If the box is checked, I want to use a php if/else statement to show one div or another. Can someone take a look at my code and ...
0
votes
1answer
61 views
Why is the output of a call to the_excerpt different when the call seems to be identical?
Ok I've been asked to fix a problem on a website that is a bit weird. The index page (template-magazine.php) here, Has this bit of code:
<?php get_template_part('loop'); ?>
to produce a ...
0
votes
0answers
33 views
Pagination not working on page
Edit :
Toscho said this was a duplicated question and gave me a link
Pagination not working with custom loop
I checked it out and followed the steps but this is not working for me.
Right now. when i ...
0
votes
1answer
28 views
How do I safely change the name of a custom post type?
I made a custom post type called 'portfolio' but I want to change it to 'projects'. What would be the exact steps I need to take in order to safely change the name and prevent the custom post type ...
0
votes
0answers
49 views
Omitted Content After Post-Publish Insertion
I have a string that contains $thehtml but whenever I insert it manually into a custom post it appears that wordpress alters/strips down the html.... I've already tested/outputted $thehtml string in a ...
0
votes
1answer
17 views
Custom Loop and Standard Blog Loop Issue
I am working on a theme with a front page that will have two loop sections. The first will loop three posts from a Custom Post Type (ill-portfolio), the second will loop three blog posts. In both ...
0
votes
0answers
34 views
Wordpress removed the slash after the site url. How do I fix it? [closed]
Somehow, in upgrading to Wordpress 3.5.1 and upgrading my plugins, the permalink structure got messed up for all of my post types. Wordpress now has the permalink like this:
...
0
votes
1answer
43 views
Comment moderation with disqus comments
Comment moderation on custom post types this answer shows moderation on custom posts. Is this possible with disqus?
0
votes
1answer
36 views
Conflict between Capabilities and Menu Visibility with Custom Post Types
I hope this isn't just the result of typo on my end, but if it is, I'm not seeing it.
I'm adding a custom post type to my site. Actually I'm adding three. Two of them I'm trying to set custom ...
0
votes
0answers
55 views
Press this! not working
I am trying to debug a Press this function on a site {Adult Contents}
This issue is, images on the page does not add up and does not show...
javascript code for press this button is
javascript:var ...
0
votes
1answer
25 views
Specify a Page as the parent to the CPT Archive
I have an "About Us" page on my site with some child pages. I have created a "History" custom post type, where the rewrite slug is 'history'.
I use archive-cpt_history.php as the template file for ...
0
votes
1answer
26 views
Restrict custom post type view by user role
I've created a custom post type and created a couple of custom user roles and want to be able to restrict the view of the post type based on the specific roles.
Is there a straightforward way to ...
1
vote
1answer
34 views
Is it possible to activate customfield 'text description' upon activating the customfield 'checkbox'?
I'm trying to find a solution how to activate a another customfield in WordPress pages when the selectbox is selected.
This is the script to simply show the customfield 'checkbox' in wordpress page ...
0
votes
0answers
20 views
Create a generic post type and define its metadata via another one used for categorization
Ok, I would like to share with you an idea I had and ask you what do you think about it and possible drawbacks I'm not able to forsee.
I'm building a database for an association with many kind of ...
0
votes
0answers
21 views
Listing custom post type items from a couple of custom taxonomies
I know I have asked a similar question in the recent past (Listing all custom post types using a specific term on the said term's template page, in groups), but in this case, the template is more ...
2
votes
1answer
64 views
current-menu-item not working with custom post type
I'm a wordpress newbie and I have annoying problem. I have a few custom post types (capability_type=post). Two of them i created with "Custom Post Types" plugin and when i put its categories in ...

