Support » Fixing WordPress » custom_fields placement within post

  • Resolved cbeck


    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:
    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; ?>

    Any help is appreciated.

  • The topic ‘custom_fields placement within post’ is closed to new replies.