slime0k

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: How to show post meta on custom post type in home. #123537
    slime0k
    Participant

    Okay, I replace if ( 'post' == get_post_type() ) with if ( in_array( get_post_type(), array( 'post', 'rilisan' ) ) ) in content/content and it works, I guess I need read more about wordpress codex.
    mantra2

    Thank you.

    in reply to: How to show post meta on custom post type in home. #123532
    slime0k
    Participant

    Hello again,

    I already duplicate content/content.php to content/rilisan.php and edit post type to match to match it, if ( 'post' == get_post_type() ) to if ( 'rilisan' == get_post_type() ) and result still same, only work on custom archive not for home archive.

    But when i look at index.php and edit <?php get_template_part( 'content/content', get_post_format() ); ?> to <?php get_template_part( 'content/rilisan', get_post_format() ); ?> result are normal post didn’t show post meta and custom post type show post meta.

    Here picture, after editing index.php
    mantra1

    Is it possible to get multiple template part for home in index.php?
    So I can add default post and custom post content in content folder.

Viewing 2 posts - 1 through 2 (of 2 total)