The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
409 views

Exclude post format from get_posts

The title basically says it all. I know I can use the following to get posts from the aside post format: $args = array( 'post_type'=> 'post', 'post_status' => 'publish', 'order' ...
3
votes
1answer
1k views

Exclude Specific Term from Search

It is possible to search for posts with a specific term by appending the URL with: ?&term=abc Is it possible to do the opposite and search excluding a specific term? Something like: ...
1
vote
1answer
944 views

Exclude featured image from gallery code stops Lightbox from working

I was looking for a solution to exclude the featured image/thumbnail in each post, so I found this great piece of code and added it to functions.php. It worked perfectly except for one thing: it ...
1
vote
1answer
398 views

Exclude featured image and custom field from this get_attachment query

Is there a way I can exclude the post thumbnail AND a custom field with the value "_lm_comm_logo" from this query that pulls all of the images associated with a particular post? <?php $args = ...
0
votes
1answer
833 views

Functions.php: Exclude Category from “Blog”

So it's quite obvious to how exclude certain categories from within a template, but I don't want to have to modify 4 templates so that they ignore a certain category. Is there a way that I can ...
1
vote
2answers
1k views

Exclude the parent custom post-type posts only

Not sure if this is possible without some form of hard-coding but I have a custom post-type called 'city'. Within the 'city' post-type I have some parent post (e.g. England, America and China) and ...
0
votes
1answer
321 views

How to have a category not show up in query post with page panigation?

Basically I have this loop that shows all post. Inside of it I want to exclude post's from categories including shirts and hoodies, also the gallery category. Here is what I have so far. the code ...
0
votes
1answer
198 views

Exclude admin from the top commenters list [duplicate]

Possible Duplicate: Top Commenters: exclude admin While back I found this hack here to display top commenters. It works fine. But I would like to exclude the admin from the commenters list. ...
4
votes
2answers
6k views

Dynamically exclude menu items from wp_nav_menu

I tried looking for info about how to exclude/remove nav menu items from custom menus, and the only thread I found did not have any answers that were useful to me. 1. Background: I put together a ...
1
vote
4answers
3k views

is there a quick way to hide category from everywhere?

I want to get rid of some posts, old ones, that I don't really want to keep. I was thinking to create a category named 'old' and use it as a garbage can to trash everything I don't like from old ...
2
votes
0answers
314 views

How to set post expiration date and time and move the page to archive after expiration [closed]

My requirement is to move the certain posts from home page category after specified date and time. I have two category News and Events. Both have so many posts and i dont want to show all the posts ...
0
votes
1answer
803 views

How can I exclude a category from the main loop with the category name & not ID?

I'm having a dozy of a time on this one and have finally had to break down and ask my first question. Usually I can find an answer on here, but this time I need some help. I'm trying to exclude a ...
1
vote
1answer
2k views

Exclude Current Post from Recent Posts Loop

what would be the best way to exclude the current post I am viewing from this recent posts query. Thank You! <?php global $post; if (in_category('top-lists')) { ...
0
votes
1answer
3k views

exclude category from get_posts?

getting posts by cat with get_posts but need to exclude another cat called london or id 10. is this possible? best, Dc. // array(7,-10) $laargsM = array('category' => 7, ...
0
votes
2answers
2k views

Exclude child pages args array

I have the following code and need it to exclude the child pages of a page ID; <?php $args = array( 'post_type' => 'page', 'post_status' => ...
0
votes
1answer
415 views

User level categories

I am using ClassiPress to create a different type of listing classifieds. I will select manually who can subscribe or not (only a type of leaders for a religious institution). I have four ...
0
votes
1answer
318 views

Better way to exclude category output for post/pages?

I always assumed there was a way to exclude certain categories from being output in the loop using get_the_category, the_category, or one of the term related functions. After looking around it seems ...
0
votes
2answers
1k views

Customize category query in widget

I would like to exclude a category from my categories sidebar widget. If I understand the way this works, the sidebar.php code is not in use since the widget is displaying the categories. (something ...
0
votes
1answer
1k views

Exclude category from drop down list form

I need a bit of quick help. How do I exclude category ID number 50 for example in drop down list form in Wordpress? I have this code and I need to just insert the excluded category id. <?php ...
0
votes
2answers
141 views

Disable the link on certain pages

I currently have a site with two levels of navigation. I am styling the wp_list_pages() list to act as my navigation. I would like to disable the link on some pages which have children (not exclude) ...
0
votes
1answer
736 views

Search results to be only posts & children of page ID

I'm trying to have my search results show only results that are a child of the 'news' category or a child of the 'work' page (ID = 16). This is what I have so far: function SearchFilter($query) ...
0
votes
1answer
913 views

show 10 most recent custom post types excluding the one(s) from specific custom taxonomy

After spending most of the day looking for solutions and trying them out, I decided to explain my problem here. I am aware that this subject has been covered and as you will see I am using code that ...