Support » Plugin: Posts in Page » Changing header.php to custom header-custom.php breaks shortcode

  • Resolved lundnick


    Great plugin, easy to configure, nice and simple worked great for adding a category for a rotating monthly donor article.

    Small problem, I hope, I had to add a custom header for certain pages. When I add the header by <?php get_header('custom'); ?> (inserts header-custom.php instead of header.php) the page works up to the Posts in Pages shortcode, which i’m using in the template as <?php echo do_shortcode("[ic_add_posts post_type='donor' template='single-donor-month.php' showposts='1' orderby='date' order='DSC' ] "); ?>

    Any idea what went wrong and what I need to do to correct?


Viewing 1 replies (of 1 total)
  • I figured it out, my error.

    In my custom-post template, I was inserting the default header, and not the new header or no header.

    It seemed like I had to have the get_header in the template, but it must remove if it’s the same, and error if different. Removing it fixed the problem I was experiencing.

    Great plugin – Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Changing header.php to custom header-custom.php breaks shortcode’ is closed to new replies.