Title: custom_fields placement within post
Last modified: August 19, 2016

---

# custom_fields placement within post

 *  Resolved [cbeck](https://wordpress.org/support/users/cbeck/)
 * (@cbeck)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/custom_fields-placement-within-post/)
 * 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/](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.

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [cbeck](https://wordpress.org/support/users/cbeck/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/custom_fields-placement-within-post/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
