oneeyedparrot
Forum Replies Created
-
Forum: Plugins
In reply to: Widget Logic – Just plain doesn’t workI think that wp_head() triggers one of those critical hooks that WL depends on very dearly to work.
Forum: Plugins
In reply to: Widget Logic – Just plain doesn’t workAha! It’s always the simplest of things, isn’t it?
Googling around, I found this topic:
https://www.ads-software.com/support/topic/197792I saw that and simply thought, “Huh.”
I looked at the default theme. Sure enough, it makes a call to wp_head(). Right before the </head> tag.
My theme didn’t. ??
alanft, thanks so much for your help. And I just realized you’re the developer of Widget Logic – great plugin!
Also, I might add that this issue could be FAQ-worthy. ??
Forum: Plugins
In reply to: Widget Logic – Just plain doesn’t workSo here’s the results:
1. I installed PHP-Exec. The extension works fine. Widget Logic = ??
2. Here’s the theme:
https://pk-fire.com/etc/spranklez.zipThanks so much again
EDIT: The site I’m working on is at:
https://spranklestudios.com/wp/Forum: Plugins
In reply to: Widget Logic – Just plain doesn’t workThe only other code that executes before this is in header.php. I gave this a look-see but nothing too interesting – just a bunch of bloginfo() calls.
Is there something that needs to be in functions.php that I don’t have?
Forum: Plugins
In reply to: Widget Logic – Just plain doesn’t workThanks for following up ??
Theme functions file is pretty small. Here it is:
<?php if ( function_exists('register_sidebar') ) register_sidebar(array( 'before_widget' => '<li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>', )); function exclude_category($query) { if ( $query->is_home ) { $query->set('cat', '-7'); } return $query; } add_filter('pre_get_posts', 'exclude_category'); ?>
I’ve removed that exclude_category function and that did nothing.
Forum: Plugins
In reply to: Widget Logic – Just plain doesn’t workHi alanft,
The theme I’m using is built from a wordpress-ignorant design. So in terms of WordPress functionality, I made it.
The worst I mess around with WP queries is indeed in the sidebar. It’s just a simple code to show a rundown of stories from a particular category. If I take it out, though, it does not change a thing. Here’s the code from the sidebar.php:
<td class="left_content"> <?php if ( function_exists('dynamic_sidebar') ) { dynamic_sidebar(); } ?> <?php if( is_home() ) { $postlist = get_posts('category_name=events&numberposts=5'); foreach ($postlist as $post) {?> <div class="event-post"> <h2 class="event-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <span class="event-entry"> <?php the_excerpt(); ?> <?php the_content("Read more »"); ?> </span> </div> <? } ?> <? } ?> </td>
Forum: Plugins
In reply to: Widget Logic – Just plain doesn’t workHas anyone got any idea at all? I checked the default theme and the code that draws the dynamic sidebar appears to exactly the same as what I have.
Forum: Fixing WordPress
In reply to: Link to parent Page?Thanks flash! You did a good thing to post the solution in a google-able topic. ??