• Resolved Chandra M

    (@nhuja)


    Hi,

    I am trying to duplicate single-campaign.php to create a page template so I can set that page as a homepage but I am getting like these:

    Fatal error: Uncaught Error: Call to a member function has_ended() on boolean in /home/breakt58/public_html/run/wp-content/plugins/charitable/templates/campaign/donate-link.php:13 Stack trace: #0

    I have the $campaign variable defined as

    $campaign = charitable_get_campaign( 810 );

    With that line change, I was able to get the content but the donation section gives me lot of errors as above.

    What am I missing?

    Any help would be great. Thanks.

    • This topic was modified 9 years, 7 months ago by Chandra M.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Campaign in page template’ is closed to new replies.