Page With My PHP Code Now Displaying Differently
-
I’m not sure if this is a WordPress problem, a Woocommerce problem, or a Pods problem. The code below allowed me to show a Pods custom field at the bottom of a Woocommerce product page. It was working just fine until recently. I really don’t know PHP at all, but was able to hobble this together from examples of other code that I found. With this code active, now the page displays in a frame. The product photos do not show and the WordPress logged-in admin bar does not display. I also get this message where the field would be displayed: The site is experiencing technical difficulties.
Any ideas as to why this would now suddenly be the case or any other insights would be greatly appreciated!
add_action( 'woocommerce_after_single_product', 'display_pod_product_bottom', 30 ); function display_pod_product_bottom() { echo '' . get_field('product_page_bottom_pod'); // Note: 'product_page_bottom_pod' is the slug of the Pods Field }
The page I need help with: [log in to see the link]
- The topic ‘Page With My PHP Code Now Displaying Differently’ is closed to new replies.