jeobrussels
Forum Replies Created
-
Forum: Plugins
In reply to: Random post – display content onlyFind the category id for that category and change
'cat' => $cat_id,to
'cat' => x,where x is your category id.
Yep, this works fine!!!
Thanks a million for your patience 🙂Forum: Plugins
In reply to: Random post – display content onlysidebar.php and index.php are unchanged TwentyTen files.
Forum: Plugins
In reply to: Random post – display content onlyOK, this is really odd. It works for other categories, but not for the “Quotes” one…
Forum: Plugins
In reply to: Random post – display content onlyThe whole template??
It’s a TwentyTen child.Forum: Plugins
In reply to: Random post – display content onlyIf I put in the Category-Name, absolutely nothing is returned. There are 8 posts in this category, so it is not due to the Cat being empty 😉
Forum: Plugins
In reply to: [Query Posts] [Plugin: Query Posts] Show specific ID doesn't workI can confirm this behaviour: neither Category ID nor a comma-separated list of post-IDs is taken up.
All other parameters work.Forum: Plugins
In reply to: Random post – display content onlyThe widget works, but apprently the category call is ignored. I get one random post but from from all categories, although I changed “mycategory” to the appropriate ID (number).
Forum: Fixing WordPress
In reply to: Prob with notification emailsYes. Of course, that’s switched on!
OK; solved. The code to add must look something like that:
add_action( 'init', 'header_widgets_init' ); function header_widgets_init() { // Area 7, located in the header. Empty by default. register_sidebar( array( 'name' => __( 'First Header Widget Area', 'twentyten' ), 'id' => 'first-header-widget-area', 'description' => __( 'The first header widget area', 'twentyten' ), 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 'after_widget' => '</li>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); // Area 8, located in the header. Empty by default. register_sidebar( array( 'name' => __( 'Second Header Widget Area', 'twentyten' ), 'id' => 'second-header-widget-area', 'description' => __( 'The second header widget area', 'twentyten' ), 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 'after_widget' => '</li>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); }Forum: Themes and Templates
In reply to: TwentyTen – change "posted on" in ChildTheme functions.phpThanks, this works perfectly well!