Permalinks for the post title

Community Forums Forums General Discussion Permalinks for the post title

This topic is: resolved

This topic contains 1 reply, has 1 voice, and was last updated by  goldfarbdev 1 year, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #40347

    goldfarbdev
    Participant
    Post count: 1

    This is my first post.  I’m trying to get the permalink to show up in the anchor for the blog post.  I put the following code snippet in the
    `genesis_post_title `simple hooks area:
     

    <?php
    if(in_category(‘blog’ ))
    ?>
    <div class=”entry-title”><a href=”<?php
    if(in_category(‘blog’ ))
    get_permalink($post->ID);?>”/>
    <?php
    if(in_category(‘blog’ ))
    the_title();?>
    </a>
    </div>

    The end HTML result is this:  <a href=””> the title…….</a>

    So basically the blog page refreshes.  PLEASE HELP!

    http://www.wlfarm.org/?cat=21
    #40349

    goldfarbdev
    Participant
    Post count: 1

    Nevermind!!!

    I should have put the_permalink instead of get_permalink….dah

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Permalinks for the post title’ is closed to new replies.