BuddyBoss Home – Web Support Forums Themes Boss. theme Front page custom post

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

    #36395
    @scr2020

    Hello…
    I want to display recent custom posts on front page.(three types of custom post) So I tried to modify index.php and front page.php and … failed.

    I want for you to help me.
    Thank you.

    Answers

    #36410

    Alyssa
    Participant
    @alyssa-buddyboss

    @scr2020 Welcome to the BuddyBoss community! Pages are a bit complex these days. In index.php or front-page.php a content part is called. This template part is either content.php or content-page.php. You are concerned with content.php. Now to even more complex. There are several pages that use this template. Scroll down to the if statement that looks like this about line 46:
    if ( is_search() || is_archive() || is_home() )
    Now you need a new function just for is_home() so remove it from this line
    About line 73 find this code:

    <!-- all other templates -->
    		<?php else : ?>

    Change to this:

    elseif ( is_home() ) :
    [insert home code here];
    <!-- all other templates -->
    		<?php else : ?>

    Hope this helps.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The question ‘Front page custom post’ is closed to new replies.