aerozg
Forum Replies Created
-
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Is there a "is_subpage" alternative?Oh man.
I have a theme that has custom widget groups that are hidden by default, that’s why i don’t see the changes.
Yup. I need to get some sleep.
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Is there a "is_subpage" alternative?I thought this would work, but it doesn’t:
– return’s TRUE for all sub-pages of Parent pages ID’s 87, 342, 429, the page ID 87 being the top level main navigation page with no parent, and the page IDs 342 and 429 being child pages of page ID 87, (also having multiple subpages of their own):
global $post; $ancestors = get_post_ancestors($post); $show_widgets_for = array(87, 342, 429); $show_widgets = FALSE; foreach ($show_widgets_for as $child) { if (in_array($child, $ancestors)) { $show_widgets = TRUE; break; } } return $show_widgets;
It only shows the widget on the first child of the page ID 87, that being the page ID 342, and on the first child of the page ID 342, being ### ..
Does not show the widget on all children, or descendants.
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Is there a "is_subpage" alternative?Doesn’t work for me, i just can’t get it to work. I have 3 levels of navigation, 1st level is the main navigation level, 2nd level there are two pages each with their own 3rd level subpages. I want to show the Facebook comments plugin on the 1st level (main nav) page including all of her descendants, no matter the depth. None of the suggestions work. I’ve tried different tricks from around the web, but i was not able to achieve this. I would like to avoid modifying the functions.php file if possible.
Forum: Plugins
In reply to: [Polylang] [Plugin: Polylang] Do i have to use Static Page as Front PageThanks for the immediate response. I got i t working.
Forum: Plugins
In reply to: [Polylang] [Plugin: Polylang] Do i have to use Static Page as Front PageI downloaded a version 0.8 today, from here:
https://www.ads-software.com/extend/plugins/polylang/
is that the development version?
Forum: Fixing WordPress
In reply to: I know html and css how do I approach changing the site look?I usually find a good theme and then customize it to fit my needs – the HTML, CSS, images etc.. If you’re comfortable with HTML and CSS you can accomplish anything with almost any theme. There are some great books out there on WordPress theme development and customization. You should check them out.