ClipThis
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Unknown 301 Redirects? – Slowing Down Page Load TimeI am experiencing the same issue. I have created many other WP custom themes, and have not had this problem. But I used a free template from WP for https://www.rnrbob.com and I am having this issue with the site. Have you resolved this issue? Or can anyone help?
Thanks!
Forum: Fixing WordPress
In reply to: Using Conditional tags in SidebarAny ideas?
Forum: Fixing WordPress
In reply to: Using Conditional tags in SidebarWell, ran into another issue. You’ll see below, post 21 and 29 have different content in their sidebars. I then created the “catch all” for all other single posts. When I visit post 21 and 29, they have their respected sidebar content. All other posts have the “catch all”. Works good. But when I visit a page, or a category page, it pulls their respected sidebar content plus the “catch all” content. How do we fix that?
Here’s my code:
<!– sidebar if pages… –>
<?php if (is_page(array(history,education))) { ?>
<p>Content A</p>
<?php } ?><?php if (is_page(contact)) { ?>
<p>Content B</p>
<?php } ?><!– sidebar if category… –>
<?php if (is_category()) { ?>
<p>Content C</p>
<?php } ?><!– sidebar if search –>
<?php if (is_search()) { ?>
<p>Content D</p>
<?php } ?><!– sidebar if single –>
<?php if (is_single(21)) { ?>
<p>Content E</p>
<?php } ?><?php if (is_single(29)) { ?>
<p>Content F</p>
<?php } ?><?php if (!is_single(array(21,29))) { ?>
<p>catch all for single posts</p>
<?php } ?>Thank you for the help!
Forum: Fixing WordPress
In reply to: Using Conditional tags in SidebarA side note…
The “catch all” text appeared on my post and category pages. I did have additional conditional tags for posts and category pages, so I tried moving the
<?php if (!is_page(array(A,B,C,D))) { ?>
<p>catch all</p>
<?php } ?>to the end of my side bar, after all the other tags, and solved my problem. The “catch all” text is now removed from my posts and category pages.
Thanks again!
Forum: Fixing WordPress
In reply to: Using Conditional tags in SidebarSeems to work (of course added the <?php } ?> )
Thank you!