WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. manuelfnavas
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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