_td
Forum Replies Created
-
I’m getting the same thing…I fill in my Instagram login info in the widget panel, click “Save” and then the login info disappears and I don’t get the widget showing up in my sidebar…
Forum: Fixing WordPress
In reply to: My category RSS feeds are redirecting to my main RSS feedFigured it out! Just wrap this whole function in a is_feed, if statement. That way I can keep the category/sub-category functionality for when you’re viewing the blog, but otherwise it uses the RSS feed template.
Forum: Fixing WordPress
In reply to: My category RSS feeds are redirecting to my main RSS feedI think I may have figured it out! It seems like it’s this function here (which I had almost forgotten I had put in):
function load_cat_parent_template() { global $wp_query; if (!$wp_query->is_category) return true; // saves a bit of nesting // get current category object $cat = $wp_query->get_queried_object(); // trace back the parent hierarchy and locate a template while ($cat && !is_wp_error($cat)) { $template = TEMPLATEPATH . "/category-{$cat->slug}.php"; if (file_exists($template)) { load_template($template); exit; } $cat = $cat->parent ? get_category($cat->parent) : false; } } add_action('template_redirect', 'load_cat_parent_template');
It turns out that when an RSS feed is loading, it uses the “template_redirect” function so for the feed it was causing it to use the category template I had made for this category instead of the default WordPress RSS feed template.
Now, I’m not quite sure how to fix it. Since I want all sub-categories to use the main category template, is there another way to do this?
I think I’m good. Thanks Amir!
OK, thank you! I figured I had to call a different function to get a that. Is there documentation anywhere that has those functions?