Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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; ?>

    Are 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.

    Try this code: <a href="https://www.google.com/search?q=<?php echo the_title(); ?>">Click Here</a> anywhere in your single.php or sidebar.php file.

    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=”https://code.jquery.com/jquery-latest.min.js&#8221; 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!

Viewing 4 replies - 1 through 4 (of 4 total)