stemie
Forum Replies Created
-
When I use
add_filter( 'wpseo_use_page_analysis', '__return_false' );
it just puts the seo columns at the end it doesn’t remove them?Any ideas what Im doing wrong?
I also have the codepress admin columns problem.
Forum: Fixing WordPress
In reply to: Historic WebsiteThanks for your help peeps.
Forum: Fixing WordPress
In reply to: Historic WebsiteThanks Krishna, will they penalise for the fact that I am back dating posts by so many years
I understand they can see when it was actually posted (not just what I set it as) but I just want to make sure I’m not penalising the site.
Forum: Themes and Templates
In reply to: Customizing My footer TextAny chance you could tell us how you fixed it?
I can’t find any parent theme and Im using Lifestyle.
Forum: Hacks
In reply to: Javascript popovers for links on signle postThis is the correct link https://twitter.github.com/bootstrap/javascript.html#popover
Forum: Hacks
In reply to: Random post query – include all posts of a random yearOk I think I got it now, was some charater changes when I copy pasted it.
Thanks for your help seems like an easy solution.
<?php // The Query query_posts ('year=' . rand(1986, 2011)); // The Loop while ( have_posts() ) : the_post(); echo '<li>'; the_title(); echo '</li>'; endwhile; // Reset Query wp_reset_query(); ?>
Forum: Hacks
In reply to: Random post query – include all posts of a random yearThanks for the reply
I tried a basic loop just to see if it works but I get an error
<?php query_posts ('year='.rand(1986, 2011)); ?> <?php while (have_posts()) : the_post(); ?> <?php the_title(); ?> <?php endwhile; ?> <?php endif; ?>
Parse error: syntax error, unexpected ‘;’, expecting T_STRING or T_VARIABLE or ‘$’ in /home/content/30/8250330/html/racingmuseum.co.za/site/wp-content/themes/toolbox/random-year.php on line 58
Line 58 being the first line, query.
Forum: Themes and Templates
In reply to: How to show only child categories using the_category();Did you find an answer.
It boggles my mind that there is no easy to find solution out their.
Its rather annoying as this must be very basic.
Anyone know how to do this?
Forum: Plugins
In reply to: Conditional tag in custom fieldThis is what Im trying to achive, say I have a custom field with a value ‘is_home()’ for the key ‘ad-location’.
I want the custom filed key to output its value as below:
<?php if ( is_home() ) { ?> global $post; $args = array( 'numberposts' => 1, 'post_type' => 'advert' ); $myposts = get_posts( $args ); foreach( $myposts as $post ) : setup_postdata($post); the_post_thumbnail('header1-ad'); endforeach; <?php } ?>
That is why I have written the code in my theme like this:
<?php if ( get_post_meta($post->ID, 'ad-location', true) )