gareth123
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: navigation link to most recent post.You could try adding this code somewhere in your menu bar and styling it…
<?php $postslist = get_posts('numberposts=1'); ?> <?php foreach ($postslist as $post) : setup_postdata($post); ?> <a href="<?php the_permalink();?>">Latest Post</a> <?php endforeach; ?>Forum: Fixing WordPress
In reply to: WordPress LIKE buttonAre you referring to a self-hosted blog or WordPress.com blog? If it’s a self-hosted blog, as far as I am aware the WordPress “like” button functionality is not available for the self hosted sites, only WordPress.com users.
Forum: Fixing WordPress
In reply to: Creating a link from post titleTry this code:
<a href="http://www.google.com/search?q=<?php echo the_title(); ?>">Click Here</a>anywhere in your single.php or sidebar.php file.Forum: Plugins
In reply to: [GD bbPress Attachments] [Plugin: GD bbPress Attachments] Won't upload,I may have a solution for you, this worked for me, however it may not work for you – afterall, it’s worth a shot…
If you’re comfortable with editing your header.php file, go ahead an open it and look for the line of code where you reference the jQuery script (CDN or self-hosted, it doesn’t matter). Move this line of code so that it’s above the
<?php wp_head(); ?>line.So, it should look something like this around these lines in your header.php file…
`<script src=”http://code.jquery.com/jquery-latest.min.js” type=”text/javascript”></script>
<?php wp_head(); ?>`The reason for this is because in some cases the jQuery was being referenced after the plugin javascript was being called (in the wp_head function) – where it should be jQuery reference first and then the functions…
Hope this helps!