wescoughlin
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to use Lightwindow 2.0 plugin???I would also like to know how to use this plugin.
After installing and activating what do you do? Do you need to call the javascript and css in the header? Then how do I implement lightbox into a wordpress page?
Forum: Installing WordPress
In reply to: Style Sheets for IE only…Thanks a bunch Root. solved my problem. I guess that is they mean by “downstream” conditional formatting.
Forum: Installing WordPress
In reply to: Style Sheets for IE only…No sorry, its not the URL in my profile.
Please visit https://greenbuilderswholesale.com
Forum: Fixing WordPress
In reply to: how to make a page – my home pageIf you want a wordpress page to be the home page, go to options in your wordpress admin menu and click on the third tab “readings” and set it there.
Forum: Fixing WordPress
In reply to: Browsing uploads–No previews or textstill no luck
Forum: Fixing WordPress
In reply to: Conditional Tags—>Different sidebarsFOUND A SOLUTION!!! YEY!
I found a plugin that allows me to show all child pages under a certain parent page.
plugin link:
https://www.schloebe.de/wordpress/is-subpage-of-plugin/
here is my code that I put in my page.php
<?php if(is_subpage_of(‘2’)) { ?>
<?php include (‘about_sidebar.php’); ?>
<?php } ?>the “ABOUT” page id is 2, so all the pages under “ABOUT” will load the about_sidebar.php
Thanks all for your help!!!
Forum: Fixing WordPress
In reply to: Conditional Tags—>Different sidebarsAnother idea….
I have my pages setup as a tree. Where “ABOUT” is a parent to page A, page B, and page C. Reading up on the conditional formating some more, is there a way were I can use the below function read true for all the child pages under “ABOUT”?
<?php if (is_page(‘page A’) ) { ?>
<?php include (‘about_sidebar.php’); ?>
<?php } ?>On the conditional formating page it says that there is no is_subpage function yet, but lists this work around.
if(get_the_title($post->post_parent) != the_title(‘ ‘ , ‘ ‘,false)) { echo “This is a subpage”; }
However I don’t entirely understand this function, such as where do you input your variable. Could I use this function to provide a “true” value for all the child pages under “ABOUT”?
Forum: Fixing WordPress
In reply to: Conditional Tags—>Different sidebarsAfter reading the Author template page, I’m not sure if that is what I’m looking for…I see how it can be used to display a list of authors in the sidebar,and display all the pages written by that particular author, but maybe I’m missing the big picture on how it would allow me to link the authors to pages and not the “archive pages” as previously stated.
Are there any plugins that add tags/categories to pages, in which then I could use a similar PHP function to the ones above to load my sidebar specifically to those pages with the corresponding tags?
Forum: Fixing WordPress
In reply to: Conditional Tags—>Different sidebarsThanks, Jeremy
Question #1: How is an archive page different from a regular page? is it a post?
Question #2: What should be my next step be? Any ideas to get the result I’m looking for?
Thanks.
Forum: Fixing WordPress
In reply to: Conditional Tags—>Different sidebarsWell if you look at my code, I followed the Conditional Tags found on that page. Already have that page bookmarked ??
My problem is that my function below does not work and I do not know why.
<?php if (is_author(‘ABOUT’) ) { ?>
<?php include (‘about_sidebar.php’); ?>
<?php } ?>I would like to display the about_sidebar.php for every page written by the ABOUT author.