0
else:
        get_template_part( 'content', 'none' );

In the home.php file (my blog index), users are redirected to this template when there are no posts. In terms of syntax, does this code mean that the template the user is redirected to is content-none.php?

1 Answer 1

0

Yes, get_template_part( 'content', 'none' ); will look for:

 1.content-none.php
 2.content.php

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.