wright_jamie
Forum Replies Created
-
Forum: Plugins
In reply to: get_the_excerpt not working in headerI just managed to solve this by increasing the priority from 5 to 20. Any ideas why this would be the case?
the_title(),the_categoriesetc work fine.Forum: Themes and Templates
In reply to: get_the_excerpt not working in header//Lets add Open Graph Meta Info function insert_fb_in_head() { global $post; if ( !is_singular()) //if it is not a post or a page return; echo '<meta property="og:description" content="' .get_the_excerpt($post->ID). '"/>'; } add_action( 'wp_head', 'insert_fb_in_head', 5 );Forum: Themes and Templates
In reply to: get_the_excerpt not working in headerI should have said, I’ve tried with both
get_the_excerpt($post->ID)andget_the_excerpt()Forum: Themes and Templates
In reply to: Strange 404 behaviourWell, after a little bit of playing, I managed to half fix this by changing the posts per page in the Reading pane of the dashboard. I set it to 4 and it fixes things.
My guess is that the is_404 is not set against my updated ‘posts per page’ in my query. Interesting stuff.
Anyhow, I’ve set the Reading pane back to 10 so if anyone wants to see this behaviour in action then visit the links above. Once I make my site live, I’ll have to set it back to 4.
Forum: Installing WordPress
In reply to: Moving current test installationHaving read the link provided by esmi, I’m fairly certain it will do what I need.
Many thanks.
Forum: Fixing WordPress
In reply to: Only 1 Sticky PostTo top it all off, I’ve just noticed that using
query_posts( $query_string.'posts_per_page=3' );
doesn’t limit it to 3 posts – it limits it to 3 posts + stickies. I’m going to be having nightmares about them tonight!