Title: Comic-post and hooks?
Last modified: August 22, 2016

---

# Comic-post and hooks?

 *  [PlasticPaddy](https://wordpress.org/support/users/plasticpaddy/)
 * (@plasticpaddy)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/comic-post-and-hooks/)
 * I am stuck. So far I’ve managed to integrate the actual comic into this theme:
   [http://www.cryoutcreations.eu/nirvana](http://www.cryoutcreations.eu/nirvana)
   
   But I’ve having trouble figuring out how to get the do_action(‘comic-post-info’)
   to show up on the front page. To be honest my PHP is horrible and everything 
   I’ve done thus far has been mostly hack and stab at the code until it works. 
   I think I’m running into a wall because of the hooks. When I try to place it 
   on the content.php, main index.php, or even the header.php, I can get it to display
   a white line where the comic-post should be. I’m guessing that it means I’m on
   the right track, but that the theme doesn’t know how to interpret the comic easel
   code?
 * So what I’m wondering is that since there are hooks, if I should be using something
   other than <?php do_action(‘comic-blog-area’); ?> or do_action(‘comic-blog-area’);?
   or rather adding more info that just the basic script line.
 * Thanks in advanced
 * [https://wordpress.org/plugins/comic-easel/](https://wordpress.org/plugins/comic-easel/)

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

 *  [MaxVaehling](https://wordpress.org/support/users/maxvaehling/)
 * (@maxvaehling)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/comic-post-and-hooks/#post-5925714)
 * Since this was posted 2 months ago, have you solved it? If you haven’t, what’s
   your site?
 * It’s hard to say without knowing your site and seeing the problem, but assuming
   your theme works with CP, the placement of the code does indeed make a difference.
   I’ve found my comic area by try and error as well.
 *  Thread Starter [PlasticPaddy](https://wordpress.org/support/users/plasticpaddy/)
 * (@plasticpaddy)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/comic-post-and-hooks/#post-5925715)
 * Thanks!
    No I have yet to solve it. So far the best I’ve been able to do is get
   a white line to show up. Either in the blog section or under the comic.
 * The site is [plasticpaddypogue.com](http://plasticpaddypogue.com)
 *  [MaxVaehling](https://wordpress.org/support/users/maxvaehling/)
 * (@maxvaehling)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/comic-post-and-hooks/#post-5925716)
 * The white line is a separator that is supposed to appear below the comic info.
   So appaprently you got the area to show but not the content.
 * I’ve had a look at your site and also at my own because I once solved that (different
   theme, but that shouldn’t matter) (though I do like yours. Looking it up next).
 * If you want it to show up right under the comic, it should be as easy as adding
   the do_action() line right under the one for the comic in the php. It’ll show
   up below the “Under Comic” sidebar, above the main container. If you want it 
   in the container, above the blog, it should be somewhere below the <div id=”container”
   >tag . Though, I just tried that on my own site and couldn’t seem to find the
   right spot either. Might be some problem accessing the WP loop. That stuff got
   a bit messy with the custom post type CE uses.
 * Alternately, you can do what I did (it’s a bit of a cheat, but I won’t tell if
   you don’t):
 * I’m using a plugin called “PHP code for posts” (using it anyway because some 
   of my comics are interactive) which allows you to save php code into snippets
   which can be used within sidebars. I saved a snippet with some formatting (for
   getting rid of that white line) and the do_action() line and put that snippet
   into a text widget in the “under Comic” sidebar. If you want it in the container,
   above the blog, see if there’s a widget area for that. Something like “above 
   blog post” or “above content”.
 *  Thread Starter [PlasticPaddy](https://wordpress.org/support/users/plasticpaddy/)
 * (@plasticpaddy)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/comic-post-and-hooks/#post-5925717)
 * No such luck, at least not to get it into the blog feed like I want it. I’m beginning
   to suspect that the theme itself just doesn’t know how to format it. If I put
   it nearly anywhere in the content/index, I get a white line.
 *  [MaxVaehling](https://wordpress.org/support/users/maxvaehling/)
 * (@maxvaehling)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/comic-post-and-hooks/#post-5925718)
 * I suggest you go with the php snippet cheat then. On my site, that works just
   about everywhere there’s a widget area.
 *  Thread Starter [PlasticPaddy](https://wordpress.org/support/users/plasticpaddy/)
 * (@plasticpaddy)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/comic-post-and-hooks/#post-5925719)
 * No luck on that either. I get the same effect, just the white line drawn across.
 * Also, I attempted to switch over from Nirvana and learn to do a theme mostly 
   from scratch. I used _S as a base back in May. `<?php do_action('comic-blog-area');?
   >` worked just fine, but I learned the hard way I should have kept the theme 
   name much shorter. So this weekend I downloaded _S again and now I get the white
   line instead of the blog area. Obviously _S has been updated, but I’m confused
   as to what would cause this. So far the only thing major I found different is
   the function.php page. Also of note is that `do_action('comic-post-info');` and`
   do_action('comic-post-extras');` Appear to work just fine in both Nirvana as 
   well as _S
 *  [MaxVaehling](https://wordpress.org/support/users/maxvaehling/)
 * (@maxvaehling)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/comic-post-and-hooks/#post-5925728)
 * Huh. Strange. If it worked in -S and doesn’t work now, it can have several causes.
   One is, as you’ve pointed out, that it updated in a way that makes the comic 
   blog post not show. Another is that by reinstsaling _S you undid a modification
   that you made earlier.
 * . Have you checked if the settings in Comics/config/gerneral are still right?(“
   Disable the Comic Post on the Home Page” obviously needs to be unchecked. I don’t
   think that’s it or you wouldn’t get the white line, but just to make sure. It
   may have reset itself at an update.)
    – Have you tried replacing functions.php
   with the one you had when it worked? Or cutting and pasting relevant-looking 
   stuff from the old functions.php to the new one?
 * It’s hard to tell if that’s it without seeing the files, but if it’s indeed a
   functions.php thing, it may be about when it accesses the loop or something.
 * If you get the white line, that sounds as if the do_action is actually being 
   done, it just doesn’t get the actual text from the post.
 * Let’s try something whacky: Copy the text from your comic blog post into the 
   Excerpt (in the edit Comic mask, right below the actual post). Just to see if
   it’ll read it from there?
 * Sorry, that’s all I got right now.

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

The topic ‘Comic-post and hooks?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/comic-easel_226fa1.svg)
 * [Comic Easel](https://wordpress.org/plugins/comic-easel/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/comic-easel/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/comic-easel/)
 * [Active Topics](https://wordpress.org/support/plugin/comic-easel/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/comic-easel/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/comic-easel/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [MaxVaehling](https://wordpress.org/support/users/maxvaehling/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/comic-post-and-hooks/#post-5925728)
 * Status: not resolved