• I’m having a hard time getting the featured image to show in my comic (as seen with the linked page).

    I’m using the Fluida theme with comic easel v1.14.

    I have no clue what is going on 🙁

    Also if you have any tips as to how to make my landing page (www.morgrog.com) show the latest post, I’d appreciate it.

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • It’s not just the image – the whole comic area fails to show on your example post. Which leads me to the obvious question:

    Where did you put the do_action(‘comic-area’) code? index.php? single.php? header.php? Anywhere else?

    As for the home page: All I’m seeing there yet is a ‘nothing found’ marker. I take it you just haven’t written any posts yet? ‘Cause otherwise that would be a problem.
    By default, the home page should show the latest comic if the ‘comic-area’ action is active there. Unless you mean landing pages independent of the home page. That would be a teensy bit more complicated.

    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.

    That’s an unusual place to put it in the single.php, right under the post…

    Since I was busy in my own home backend anyway, I downloaded Fluida and placed the code in the same spots as you. Works perfectly. But I noticed that you seem to have stripped a lot of stuff from your theme, comparing my mock-up to the pages you linked. Maybe you cut a bit too much?

    Try just including the code in the original pages, then remove what you don’t need by and by. I’m assuming you’re working in a child theme and still have all the clean code in the main theme, right?

    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)

    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!

    Right above where the blog loop starts (either before the if(have_posts) line or the content hook abve that), add:

    <?php do_action('comic-blog-area'); ?>

    … Actually, I just tried that on my site and it doesn’t show the actual post but the teaser for it like the other posts with a link to the actual post page, above the rgeular post summaries, so you can do frontpagey stuff with the rest of the page. I actually prefer this, but if you want the page exactly like the single post, you may have to fiddle about a bit with the loop from single.php or something…

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Featured Image not Showing with Fluida Theme’ is closed to new replies.