Author Topic: Powerpress doesn't work with my custom theme  (Read 423 times)

blueknight

  • Newbie
  • *
  • Posts: 4
Powerpress doesn't work with my custom theme
« on: August 14, 2012, 09:33:18 pm »
Hello!

I've followed a tutorial online on how to make my own Wordpress theme. I've kept it very basic.

I installed Powerpress and it doesn't work with my theme. I'm just trying the shortcode [powerpress url=""] at the moment simply to see if this would work. I switched over to Twenty Eleven just to check if the plugin works and it works fine, but not with my custom theme.

I went to Settings > Media Appearance and selected "Yes, please try to fix" to "Having Theme Issues." I cleared my browser cache and WP Super Cache just to be sure.

Since this is my first crack at creating a Wordpress theme - and remember, I'm keeping it simple - I'm not sure if I'm missing something in the code that Powerpress depends on.

Please help. :)

mgdell

  • Blubrry Support
  • Administrator
  • Hero Member
  • *****
  • Posts: 1672
  • Tech Support for Blubrry and RawVoice Inc
    • Mike Dell's World
Re: Powerpress doesn't work with my custom theme
« Reply #1 on: August 16, 2012, 04:44:58 pm »
Our Developer is out today.  He will answer you sometime soon I'm sure.

-Mike

angelo

  • Custom Title
  • Administrator
  • Hero Member
  • *****
  • Posts: 3304
  • CIO, RawVoice
    • Angelo's Blog
Re: Powerpress doesn't work with my custom theme
« Reply #2 on: August 20, 2012, 05:01:28 pm »
Writing your own WordPress theme, are you using the correct theme functions like the_content() ?? When you use the fucntoin the_content() all the plugins are called to add their stuff to the page at that point. You also need ot make sure you're in the loop. IF you don't know what that means, Google "WordPress in the loop".

blueknight

  • Newbie
  • *
  • Posts: 4
Re: Powerpress doesn't work with my custom theme
« Reply #3 on: August 21, 2012, 07:59:09 pm »
Thank you very much for the reply.

I am using the Loop. As an example, I'm including the code of my single.php page.

Code: [Select]
<?php get_header(); ?>
<div id="blog_main">
           

           
            <div class="archive_month"><p class="category">SEASON 10</span></p></div>
           
            <?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>

               <div <?php post_class(); ?>>

              <div class="news-head">       
                <div class="news-title">
                    <p><a href="<?php the_permalink(); ?>" class="title"><?php the_title(); ?></a></p>
                </div>
                <div class="news-author">
                    <p>Posted on <?php the_time('l, F j, Y'); ?></p>
                </div>
             </div>
               
<div class="post-content">
<?php the_content(''); ?>
</div>

<div class="post-footer">                   
<ul class="post-meta">

</ul>
</div>

                </div>               
               
                <?php endwhile; ?>

            <?php else : ?>
<div class="post-title">
                <h2>Nothing found</h2>
                    <p>Sorry, but you are looking for something that isn't here.</p>
                    <p><a href="<?php echo get_option('home'); ?>">Return to the homepage</a></p>
                </div>
            <?php endif; ?>

            </div>
           
<?php 
$post $wp_query->post;
if ( 
in_category('3') ) 
{
include(TEMPLATEPATH '/sidebar-blog.php');
}
elseif ( in_category('4') ) 

{
include(TEMPLATEPATH '/sidebar-news.php');
}

else 

{
include(TEMPLATEPATH '/sidebar.php');
}
?>


<?php // get_sidebar(); ?>
<?php get_footer(); ?>

angelo

  • Custom Title
  • Administrator
  • Hero Member
  • *****
  • Posts: 3304
  • CIO, RawVoice
    • Angelo's Blog
Re: Powerpress doesn't work with my custom theme
« Reply #4 on: August 21, 2012, 08:02:45 pm »
That confirms there is no call to the_exerpt or the_content.

blueknight

  • Newbie
  • *
  • Posts: 4
Re: Powerpress doesn't work with my custom theme
« Reply #5 on: August 21, 2012, 08:17:39 pm »
Drats.

Ok, so the following code isn't what you're referring to?

Code: [Select]
<div class="post-content">
<?php the_content(''); ?>
</div>

Why don't I understand? What part am I hung up on?

blueknight

  • Newbie
  • *
  • Posts: 4
Re: Powerpress doesn't work with my custom theme
« Reply #6 on: August 21, 2012, 08:43:17 pm »
I didn't have "wp_head();" in the header file. It works now!

Thanks!

angelo

  • Custom Title
  • Administrator
  • Hero Member
  • *****
  • Posts: 3304
  • CIO, RawVoice
    • Angelo's Blog
Re: Powerpress doesn't work with my custom theme
« Reply #7 on: August 21, 2012, 08:46:19 pm »
Sorry didn't see that.

Missing the head includes would be a problem