Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1048636
    Amir
    Participant

    Hello,

    Is there a way to add the post date as an element anywhere I prefer in the post page?

    I disabled the default post entry header in my posts, however, I am wondering if I could add the post date meta only underneath the Title of my post; which is within a section. Preferably with the calendar icon.

    http://www.2-excel.com/page-template/

    Thank you

    #1049005
    Rue Nel
    Moderator

    Hi There,

    Thanks for writing in! By default, post meta appear under the title but you have hidden it by adding this code:

    
    header.entry-header {
        display: none;
    }

    At this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.

    Thank you.

    #1049210
    Amir
    Participant

    Hello,

    Thank you for your reply and sorry for not being clear enough.

    I basically disabled the default post meta as I wanted to achieve a specific design, so I had to manually create a section when creating my page for the post details.

    http://www.2-excel.com/page-template/

    For example in the link above, you can see that there is no post meta, however, in my first section I added a custom header and entered the post header. While I can also do the same for the date and enter it manually in every post, I am just wondering if there is a code that would help me achieve this result. So its like adding the post date meta as a raw content (maybe)? I am not sure if it’s possible, but it would be helpful.

    I attach an image of how I am aiming the final result to look like.

    Thank you

    #1049475
    Rad
    Moderator

    Hi there,

    Since you have a different design that wishes to manually input as raw, then your code and content are unique. But, you can convert your content to a shortcode, that way, you can just add the shortcode manually for each post. Would you mind providing the content you wish to add for post meta?

    Thanks!

    #1051102
    Amir
    Participant

    Hi,

    Thank you for your reply. That sounds like it would solve my problem.

    I would like to add the following content: Date, Category and number of comments.

    Thanks.

    #1051357
    Jade
    Moderator

    Hi Amir,

    You might want to check this plugin that extracts some meta information of a post that you can display using a shortcode.

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1048636 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>