The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

adding post type in entry header...standard posts??? (2 posts)

  1. manuelfnavas
    Posted 3 years ago #

    hello everybody!

    I wanted to add a little "header" y all posts with the type of post. So that way, I used this functions in content.php
    <header class="entry-header"><?php echo '<div class="entry-format">'.get_post_format(get_the_ID()).'</div>'; ?>
    Everything works ok! I styled each post title with css

    But, the only one not appear is standard post type. Anyone knows how get appear standard type too in entry-header???

    Thanks in advance ;)

  2. manuelfnavas
    Posted 3 years ago #

    If somebody is interested I "semi-resolved" the issue I use this sentence in content.php
    <header class="entry-header"><?php echo '<div class="entry-format">'.get_post_format_string(get_post_format(get_the_ID())).'</div>'; ?>

    Everything works ok, but standard post-type doesn't show in single post. ┬┐Anyone could help me?

    Thanks in advance

Topic Closed

This topic has been closed to new replies.

About this Topic