The archive page goal provided in github snippet doesnt work?
-
Hi, the snippet provided here… outputting the goal no longer works? tested on my theme and default WP theme. It seems that when i remove the conditional
if ( $goal_option == 'yes' ) {
then it works fine, however, this also shows the error message on forms that dont have a goal.
the code to output the goal is
// Output the goal $goal_option = get_post_meta( $id, '_give_goal_option', true ); if ( $goal_option == 'yes' ) { $shortcode = '[give_goal id="' . $id . '"]'; echo do_shortcode( $shortcode ); }
Hope that helps.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘The archive page goal provided in github snippet doesnt work?’ is closed to new replies.