The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
40 views

wp_list_filter() and supports

I'm testing the function wp_list_filter(), basically I want to know if post_type has some specific feature before making stuffs. So I end up with this: public static function ...
0
votes
0answers
25 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
1answer
45 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
0answers
36 views

how to force CUSTOM POST TYPES to use default permalink

my custom post type sample link is : mysite.com/custom-type-name/post_slug i want that my custom post types used the permalink structure, which i have set in Options>Permalinks (exactly, i want ...
0
votes
0answers
37 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
1answer
61 views

Custom wp_query differs on index page and category page

I've been banging my hand against the wall for a little while now trying to figure this out. Can anyone explain to me why this custom wp_query prduces two different sql statements, one for the index ...
0
votes
1answer
44 views

Custom filter for main search: how to exclude specific post_type from search results

Is there a way to use WP_Query's method, set(), in order to exclude a specific post_type from a global search. Here was my unsuccessful attempt: function _search_all($query) { ...
0
votes
1answer
48 views

Why is the post type on the search result page random?

So I think I might be doing something fundamentally wrong in my Wordpress themes since this issue seems to crop up every once in a while and I don't know why. So basically I created search.php and I ...
0
votes
2answers
155 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 ...
4
votes
1answer
63 views

Exclude top-level pages from search results

With the following code I can exclude all posts and pages that are top-level, but I would like to apply this only to pages, not to posts (but I still want all posts in the results): function ...
0
votes
1answer
94 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
80 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
0answers
71 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 ...
0
votes
0answers
26 views

Trying to pull tag on image attachment for a containers class

So here is my query: <?php $page = (!empty($_GET['myp'])) ? $_GET['myp'] : 1; $per_page = 20; $base = get_queried_object(); // ...
0
votes
1answer
18 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
0answers
100 views

Post Type Generator with form PHP + AJAX?

I am creating a plugin to standardize things in creating themes, I include a 'post type generator' in the plugin, but I've been seeing some are very complicated, I would like to create something very ...
0
votes
0answers
50 views

Custom post type permalink with category and paging

I have a question would help everyone I have custom post type: “convert” And I added categories to post type Now, I want my permalink is: http://example.com/convert/category_name/ I use Custom ...
0
votes
1answer
453 views

Add filter to Admin list for all custom post types by their custom taxonomies

I want to add filter on every Custom post type that have taxonomy associated with it. I have googled but found code for only for single post type or for single taxonomy.
0
votes
2answers
149 views

Target Post Type from array Query

I have the following query to extract posts from two different types. However, how can I then target them in the actual content display conditional code? The if ($my_query->post_type == 'featured' ) ...
0
votes
1answer
24 views

How would I get a list of posts from a custom post type

I know the query method that you would use, that's not what I want. I could query the post type, then do the if statement with the while statement and go from there, but I am trying to populate a drop ...
0
votes
0answers
27 views

How to use corect the tags

Hy, i have a wordpress cinema site, i have 3 post type : Persoane, Stiri/News Trailers and Movies( that are post's) In every post type i enabled the tag's. How can i use corect the tags in news ...
0
votes
1answer
72 views

What does get_current_screen() do?

Codex says ' This function returns an object that includes the screen’s ID, base, post type, and taxonomy, among other data points' . What does it mean by 'screen'? Coding example: function ...
1
vote
1answer
259 views

Custom dashboard menu does not stay open for the custom Taxonomy within it

Short Version: Custom menu with a custom post type that supports a custom taxonomy. The custom post type works, the menu for it works and stays open. The custom taxonomy works, but the sidebar menu ...
0
votes
2answers
296 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 ...
1
vote
1answer
38 views

child of post type (custom)

I registered a custom post type (foo) with register_post_type, setting 'hierarchical' => true,so now when I want to use it I have post_type=foo. How can I query child of foo? any ideas? thanks!
0
votes
1answer
227 views

Sort query output on taxonomy term archive by post type using pre_get_posts

I'm using pre_get_posts to adjust the main query of the taxonomy term archive. What I would like to accomplish is that the output is listed by post_type. I have a total of 4 post types and I want to ...
1
vote
2answers
135 views

Query reset problem or flawed code to enable custom post type query

After reading through here and trying various options, I am finally able to get my custom post types 'testimonial' (created with product 'Toolset') to show along with my standard cat/tag queries ...
0
votes
2answers
122 views

Is it possible to filter the display name for post formats for display in the Formats meta box?

I've got a few special needs in terms of post formatting, but do not want (and cannot) break out of the standard Post Format paradigm per best practices. I've come up with a mapping of WordPress ...
0
votes
3answers
825 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/ ...
2
votes
2answers
179 views

How to output content based on same custom taxonomy?

I have been trying to output content of all post-types (Posts, Pages and CPTs) based on a term of a custom taxonomy that they must share (meaning if they don't share that particular term, the output ...
-1
votes
1answer
33 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 ...
0
votes
1answer
128 views

How can I make a custom post type that loops pages in a new dashboard page, each single page is a new dashboard page (all within the back-end)?

I've been wanting to make the most out of WordPress, to use it more and more like a CMS as it truly is a wonderful project. Out of all the CMS/Blogging webapps, WordPress wins in my book. I ...
0
votes
1answer
239 views

Walker_Nav_Menu creating too many closing tags?

created this walker below to create a set of tabs. All looks ok but in the source there are several more than there should be causing validation errors. I only want to generate a tab for 'question' ...
1
vote
0answers
54 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 ...
3
votes
1answer
357 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
129 views

Is it possible to request several post types from a feed?

If so, how should the query URL be formatted? I've tried: post_type=cat1&post_type=cat2 post_type=cat1,cat2 post_type=cat1+cat2 This bug report says you could use ...
0
votes
1answer
83 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
94 views

why there are so many posts whoes post_type is revision? will these records waste too much database space?

from the following data we may know there are only 30 records which are meaningful, and there are 92 records of revision post_type which can not be shown on the blog. so will these records waste too ...
1
vote
1answer
132 views

how to fetch the meta field keys/meta boxes from a post type?

I need to find all the meta keys or meta boxes preferably from just a post type ...couldn't find any wordpress function to do this. Any custom queries?
5
votes
3answers
1k views

Use register_post_type() to modify an existing post type

There are lots of situations where a theme or plugin registers a post type and you want to modify it. There is of course add_post_type_support() and remove_post_type_support(), but those don't give ...
0
votes
1answer
148 views

wp_list_pages() refuses to output posts

Someone help me understand why the following do not output anything: wp_list_pages( 'post_type=post' ) wp_list_pages( 'post_type=event' ) Yet the following work as expected: wp_list_pages( ...
0
votes
1answer
272 views

Define add_editor_style to specific post types?

I am wondering is it posible to define add_editor_style to specific post types? Currently I am using this function.. // EDITOR STYLE add_editor_style('editor-style.css'); But I would like have ...
4
votes
2answers
720 views

How to get attachments for a specific post type?

I have this page where I am showing all post's attachments. This is the code: <?php $args = array( 'post_type' => 'attachment', 'post_status' => 'published', 'posts_per_page' ...
1
vote
1answer
1k views

Use get_post_types to query only custom posts types

I need to query only custom posts types - that is all post types in my WP install excluding posts and pages. I have used get_post_types to build a string of all custom post types which I want to ...
0
votes
1answer
67 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 ...
0
votes
1answer
267 views

Pros and Cons of Post Types vs. Multiple Blogs

I currently have 3 WordPress instances. One is primarily a coding blog (with samples/tips, and a few personal insights). One is a photo blog. One is a general quote type blog, small snippets of text ...
0
votes
1answer
329 views

Show multiple tax_query from 2 or more post_type in a single code

i've been trying with no success to show 2 custom taxonomies from 2 post_type, here's my code: <?php /** * Display a list of the most recent news in 'Avisos' ...
5
votes
2answers
108 views

Per Post Type Revision Numbers

In wp-config.php you're able to change how WordPress deals with post revisions. Specifically you're able to turn them off or specify a max number of revisions. I'd like to be able to set a max number ...
0
votes
1answer
1k views

Multiple post type queries (with specific arguments for each)

So i know how to combine post types into 1 loop and out put the loop. Below is what i have: <?php $args = array( 'post_type' => array('post','movie','actor'), ...
0
votes
2answers
676 views

“Revision” records in wp_posts have original post type instead of “revision”

After seeing some weird hits in my Relevanssi search results I found the following: http://wordpress.org/support/topic/searching-with-relevanssi-shows-all-revisions I ran the following on my ...