Custom "post description"

January 2013 WordPress Theme
GK User
Wed May 07, 2014 1:54 pm
custom text spot.png


Hi

Is there any tool/possibility to add a custom text field on the left side in post page, just below category and tag description?

Pls. see picture...

THNX in advance
User avatar
Junior Boarder

GK User
Wed May 07, 2014 2:02 pm
Hello,

Which theme are you using, could you provide an URL to this page? (here or via PM).
User avatar
Moderator

GK User
Wed May 07, 2014 5:02 pm
I sent you PM, and replyed here, and can't see the post, pls check your PM

Theme is News
User avatar
Junior Boarder

GK User
Thu May 08, 2014 1:41 pm
You have access to my site, can you pls check it?
User avatar
Junior Boarder

GK User
Thu May 08, 2014 2:48 pm
Hi,

You didn't answer me if this text should be constant? (the same text for all posts?)
User avatar
Moderator

GK User
Thu May 08, 2014 3:25 pm
No, need to write something like... "Source: www.theguardian.com/uk"

Word Source can be constant, but the rest I need to change.
User avatar
Junior Boarder

GK User
Thu May 08, 2014 3:25 pm
No need to have activ hiperlink
User avatar
Junior Boarder

GK User
Fri May 09, 2014 7:50 am
Hi,

It won't be easy, please edit News/gavern/helpers.layout.fragments.php (around line 312) and after this code:

Code: Select all
<li class="tags">
         <p><?php _e('Tagged under:', GKTPLNAME); ?></p>
         <?php echo $tag_list; ?>
      </li>


You can add your text:
Code: Select all
<li class="tags">
         <p>Your text</p>
      </li>


But in this case it will be only constant text.
Generally this kind of cusotmization is beyond our technical support, but you can try to use custom fields in your posts, e.g. add new custom post field - source and value: http://www.yoursource.com (you can easily edit this custom field in each post).

Then instead my earlier code use this one:
Code: Select all
<li class="tags">
         <p><?php echo get_post_meta( $post->ID, 'source', true ); ?></p>
      </li>


and around line 270, change global $tpl into
Code: Select all
global  $tpl, $post;
User avatar
Moderator


cron