The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
3answers
1k views

Displaying only the current category in template page

I'm having a problem displaying filtered category list pages. I want to be able to only show the current category, not all of the posts from "my categories". i.e. www...com/mycategories/category-3/ ...
0
votes
2answers
846 views

Overwrite rewrite-slug of built in post-type 'post'

I need to change the rewrite-slug of the built in post-type 'post' to 'example.com/magazine/news/any-nice-news-item'. When I re-register the post-type 'post' and set the rewrite-slug to ...
0
votes
2answers
598 views

Post Type => Any conundrum

I have a number of regular posts and pages in a regular category called "Featured". I have also installed a plugin called "Event Organizer" that creates its own custom post type called "Event" and has ...
4
votes
1answer
641 views

WP_Query ignores post_type in category view

I have following query to select posts by my custom post-type. This works fine while being on the frontpage (the snippet is included in the sidebar). As soon it gets executed on a category page the ...
2
votes
1answer
96 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
24 views

Taxonomy template by post type

I have 2 custom post types that share a taxonomy. The taxonomy template of my taxonomy ( taxonomy-my_tax.php ) will query both custom post types. Is there a way to have a taxonomy template for each ...
0
votes
1answer
29 views

How to define which register_post_status goes to which register_post_type?

New to registering post types but looking at samples, and the codex not helpful here. I am not understanding how the two of these relate? This is just bare bones so someone can explain (the parameter ...
0
votes
1answer
40 views

Sort Posts By Custom Field Date?

I have the following code displaying posts from a custom post type. However, I need them displayed in date order from information put in a custom field, can this be done? I try this code :- $course ...
0
votes
1answer
423 views

wp_query for displaying attachments with a tag

So I am running the following query: <?php $args = new WP_Query(array( 'post_type' => 'attachment', 'posts_per_page' => -1, 'oderby' => 'title', ...
0
votes
1answer
208 views

Taxonomy Category category.php not working

I have created custom post type, taxonomy and categorys. When viewing the category it seems to be using index.php and ignoring the WordPress template hierarchy. Any ideas why category.php, ...
0
votes
1answer
255 views

save_post not working with attachments

I've made a Meta Box for Posts and Pages, and while testing added Attachments too. But, curiously, the hook save_post does not fire. $cpts = apply_filters( 'my_filter', array( 'post', 'page' ) ); // ...
0
votes
1answer
19 views

Add a tag like a post

For days I'm looking at different threads Stackexchange, but I can not find the solution. I hope you can help me out. I created a post_type called "bands". I'm trying to, from another post_type (eg ...
0
votes
1answer
103 views

permalink and $_GET

i create a new post-type called servizi. I customize the permalink for this structure: /%post_id%/%postname%/ But there are a different width post link . For example the post link is ...
0
votes
1answer
71 views

Problem with permalink structure for Wordpress custom post_type archive template

I have looked at other similar answers to this question but not finding my way. I am using Custom Post Types plugin for a custom post_type called 'product' and has_archive is set to 'true' in the ...
-1
votes
1answer
37 views

How do i retrive a post from a custom post type

How can i retrive a post from a Post Type were "distributie_seriale" is a relationship field. Ex: I add an Actor to PostType - actors ( Add post) next I add an Serial on PostType- serial ( Add ...
1
vote
0answers
59 views

How to build a simple nav system of custom post type categories and its posts?

I've been searching the web for a long time now, but couldn't find a solid simple anwser to, what seems to be a basic question: I have to output a list of custom post type categories and the posts of ...
0
votes
0answers
23 views

Custom post type and shared custom taxonomy ..permalink structure

hope someone can help me since I'm fighting with this issue since weeks without a solution. Scenario: ~ 15 different post types (hotel, bed-and-breakfast, etc) -> reason to use the post_type ...
0
votes
0answers
14 views

Prevent from duplicating post/pages

I want to import posts and pages but not to duplicate them. $post_types = array('post', 'page', 'wck-meta-box'); foreach ($post_types as $post_type ) { foreach ($posts[$post_type] as $post ) { ...
0
votes
0answers
19 views

Custom post types accessible from 3 urls

I have created a custom post type named library and it has a post named irrlicht.when you visit example.com/irrlicht or example.com/library/irrlicht or example.com/libraries/irrlicht you still access ...
0
votes
0answers
42 views

Some questions regarding post-types and pagination

I've built my own theme from scratch using the HTML5 Blank Framework My problems started when I added 3 differen post-types; Work, 50mm and Findings. I've hided the standard 'Posts' type, so that I ...
0
votes
0answers
17 views

How to edit plugin to only display on specific post types, instead of all posts and pages

I've installed a plugin (allows users to save favourite posts to a list: http://goo.gl/9LEvjy ) but by default it displays on all posts and pages. I want it to only display only on posts, NOT pages - ...
0
votes
0answers
31 views

Custom post_type 404 error

I created my custom post_type for "trip": $rewrite = array( 'slug' => 'vylet', 'with_front' => true, 'pages' => true, 'feeds' ...
0
votes
0answers
40 views

How do I get is_single() to return true when called internally from the_content()?

I have a custom page, e.g. blog.php?post=42 that shows a GET-specified post like so: <?php require('wordpress/wp-blog-header.php'); ?> <!-- my non-wordpress site's html goes here --> ...
0
votes
0answers
82 views

Custom Permalinks for CPT causing 404 errors for 'normal' single post pages

I'm having a problem with the permalink structure of a Custom Post Type which is conflicting against the normal single posts (in the 'posts' post type which comes as standard with WordPress). Heres ...
0
votes
0answers
20 views

Determine mime type, wordpress mechanism

I need to tell file mime type. I'm really don't want to deal with PECL finfo extension. I don't know what php version client server has. Since I'm using wordpress, and it does have file upload ...
0
votes
0answers
29 views

How to remove slug from more than one custom post type

I followed this tutorial from WordPress (http://vip.wordpress.com/documentation/remove-the-slug-from-your-custom-post-type-permalinks/) to remove slug from custom post type. Now my question is how to ...
0
votes
0answers
57 views

How to show metabox key to custom post?

is it possible to show all custom metabox key name and show it as dropdown list on my custom post with my custom metabox dropwdown list ? this is custom metabox from another plugin/theme and how ...
0
votes
0answers
77 views

get specific post_type from blog1 in multiste

okay this is the situation I have a coupon site with more than 2000 coupons already, now i want to display them on a second domain within my multisite setup. Therefore i need the second domain to ...