Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter morgrog

    (@morgrog)

    Getting there, the featured image is now displaying

    By default, the home page should show the latest comic if the ‘comic-area’ action is active there

    This is what I want, the home page to display the latest comic. I want the home page to show the latest comic with the same format as the single page. It currently display the Hello World post, just adding the comic-area action puts the latest image but not its associated test. How can I use the content of single.php on the home page?

    Once again, thanks a lot!

    Thread Starter morgrog

    (@morgrog)

    Actually no, I don’t have the original code, but that’s not a big issue, I’ll just reset the database (as I said I’m a total WP/PHP noob).

    I’ll start fresh and heed your advice, i.e. create a child theme.

    Thread Starter morgrog

    (@morgrog)

    I put the do_action(‘comic-area’); code in the following files:

    Main Index Template (index.php)

    ...
    <?php cryout_before_content_hook(); ?>
    <?php do_action(‘comic-area’); ?>
    <?php cryout_after_content_hook(); ?>
    ...

    and

    Single Post (single.php)

    ...
    </div><!-- .entry-content -->
    <?php do_action(‘comic-area’); ?>
    <?php if ( get_the_author_meta( 'description' ) ) {
    // If a user has filled out their description, show a bio on their entries
        get_template_part( 'content/author-bio' );
    } ?>
    ...

    Still no go.

    BTW, if it wasn’t obvious enough, I’m an extreme WP/PHP neophyte (but a programmer by trade) so if you have any tips to debugging this myself, I’d appreciate it 🙂

    Thanks for the reply Max.

    • This reply was modified 8 years, 2 months ago by morgrog.
Viewing 3 replies - 1 through 3 (of 3 total)