Skip to main content
17 events
when toggle format what by license comment
Mar 14, 2013 at 18:29 comment added kaiser @Milo Good catch. Fixed.
Mar 14, 2013 at 18:28 history edited kaiser CC BY-SA 3.0
added 22 characters in body
Mar 14, 2013 at 17:26 comment added Beth Blinebury Thanks again @kaiser - didn't mean to waste your time! I'll be more specific next time. New to the boards, sorry.
Mar 14, 2013 at 17:09 comment added Horttcore Btw, you also have to check if it is the main_query, else you alter all queries on the main page.
Mar 14, 2013 at 16:45 comment added Milo $wp_query->set should be $query->set.
Mar 14, 2013 at 16:42 comment added Horttcore @BethBlinebury you forgot to add a parameter in your function function block_cat_query($query)
Mar 14, 2013 at 16:41 comment added Horttcore Instead of is_home() || is_search() || is_tag() ) use the is_front_page() conditional tag.
Mar 14, 2013 at 16:39 comment added Beth Blinebury Sorry! I have updated my question. The function you submitted output the following error message (line #37 is where $wp-query->set is located) - Fatal error: Call to a member function set() on a non-object in /home/content/b/e/t/bethblindesign/html/allure/wp-content/themes/allurefilms/functions.php on line 37
Mar 14, 2013 at 16:30 history edited kaiser CC BY-SA 3.0
deleted 2 characters in body
Mar 14, 2013 at 16:30 comment added kaiser @BethBlinebury Then please update your question with those very specific details... And if you say "error", then please as well tell the exact error description. Error is pretty vague by itself.
Mar 14, 2013 at 16:10 comment added Beth Blinebury The original function I posted DOES work. It's just that I'm using <?php single_tag_title(); ?> in my header.php file and with that function, the single tag title is showing up as the category title. That's really the only issue I'm trying to resolve but I thought maybe a different way of writing it would do the trick.
Mar 14, 2013 at 16:07 comment added Beth Blinebury I'm trying to modify my theme. I tried the updated function you posted and it's throwing an error for 'set'
Mar 14, 2013 at 16:03 history edited kaiser CC BY-SA 3.0
added 85 characters in body
Mar 14, 2013 at 16:02 comment added kaiser @BethBlinebury What exactly are you trying to do: A) Public/Theme modification or B) modifiying the admin UI? If it's about themes, then see the update. If you're trying to query for a category with the ID of 3 as well on every of those listed pages, then you might want to go with category__and.
Mar 14, 2013 at 15:48 comment added Beth Blinebury Sorry, let me be more clear... I only want to SHOW category #3. And the function I originally posted does work, however tag pages are showing up as category pages. Does that make sense? For example, if I am looking at a specific tag page while logged in, the WP-admin bar shows "edit category" instead of "edit tag." And the tag name does not show up, but the category name. I'm just trying to figure out why the tag pages are showing up like they're category #3 pages.
Mar 14, 2013 at 15:41 history edited fuxia CC BY-SA 3.0
one category, singular
Mar 14, 2013 at 15:33 history answered kaiser CC BY-SA 3.0