• Goodnight everyone,
    I’m doing a blog that I need two formats difernetes posts.
    right there I decided to post a custom type is the problem, I call these two ways to post the same loop!
    example, call the Standard Model and a wordpress template (design) as custumizados https://www.naosalvo.com.br/você/
    you can see that this blog exists two different ways to post the same loop!

    I could do for the post format, more is not yet the way I want.

    the code that did this was in the loop of the post format:

    <? php if (have_posts ()): while (have_posts ()): the_post ();>
    <php if (has_post_format ('gallery')) {?>
    <p> Model Gallery Post </ p>
    <? php} elseif (has_post_format ('video')) {?>
    <p>> Model Post Video </ p>
    <? php} elseif (has_post_format ('image')) {?>
    <p>> Picture Post Model </ p>
    <? php} else {?>
    <p> Post Standard Model WordPress </ p>
    <? php}?>
    
    <? php endwhile;?>
    <? php endif;?>

    i wonder! how to transform this custom type post?

    Can someone help me?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘CUSTOM POST TYPE’ is closed to new replies.