Posts in Page
[resolved] Changing header.php to custom header-custom.php breaks shortcode (2 posts)

  1. lundnick
    Posted 1 year ago #

    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?



  2. lundnick
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Posts in Page
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic