WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] custom_fields placement within post (1 post)

  1. cbeck
    Member
    Posted 4 years ago #

    Each one of my posts automatically creates a short url to my permalink and puts it in a custom_field within the post. i succesfully added code to have the post show this link. Problem is it is populating under one of my plugins output (sociable) and not under the post content itself.

    How i want it to show:
    Post Title
    post body
    short url custom field
    sociable plugin output

    In reality the short URL and socialable output are switched and that is not want i want.
    See example here at my test site: http://beta.yahooanswerfail.com/gfgfggfg/
    Code im currently using is

    <div class="post-content">
    <?php the_content('<img alt="Read More" src="/wp-content/themes/yaf/images/morebutton.png">'); ?>
    <?php $shorturl = get_post_meta($post->ID, 'shorturl', true); ?>
    Permalink to this fail: " title="Permalink to this Y! Answer Fail"> <?php echo $shorturl; ?>
    </div>

    Any help is appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags