[Plugin: Widget Logic] Switches Out Widgets and Titles but Not Content?
-
Here is my website I’m working on for reference so far. https://www.jonnyb.org Focusing on the Blog, Videos, and News sections.
This is pretty stinking neat. It’s really close to what I’m looking for. I got it working so far with the Titles at least showing up per category page your on. But however….
I can’t figure out the php hooks or calls to tell it to only show that categories posts or archives.
For i.e.
BLOG page should only have 1 Recent Post and 1 Archive.
VIDEOS page should have at most 5 Recent Posts and Tons of Archives
NEWS page should have 5 Recent Posts and at least 1/2 the amount of Archives as Videos does.But currently it still shows all posts and all archives and just changes out the titles. I know in reality it is changing out the widget which is perfect!!
I tried the “wp_reset_query” fix as well. No go. I’m also using PageLines Platform Pro. Killer so far.
I can’t figure out the “Widget Logic” for those. I’m trying this:
Widget#1 Recent Blog Posts
is_category(‘blog’) || (is_single() && in_category(‘blog’))
Widget#2 Blog Archives
is_category(‘blog’) || (is_single() && in_category(‘blog’))Widget#3 Recent News Posts
is_category(‘news’) || (is_single() && in_category(‘news’))
Widget#4 News Archives
is_category(‘news’) || (is_single() && in_category(‘news’))Widget#5 Recent Video Posts
is_category(‘videos’) || (is_single() && in_category(‘videos’))
Widget#6 Video Archives
is_category(‘videos’) || (is_single() && in_category(‘videos’))Thanks in advance!!
- The topic ‘[Plugin: Widget Logic] Switches Out Widgets and Titles but Not Content?’ is closed to new replies.