• Resolved Michael

    (@mgparisi)


    I need to move the body of the post after the single-product template. I tried doing this by replacing “the_content();” with “echo get_post_meta( $post->ID, ‘description’, true );” This use to work, but now the “description” field is not showing. Also, the WP-User-Frontend Plugin attaches the custom fields to “The_content” and thus when we move this to the bottom of the product it moves all the other fields to bellow the product. all we want to do is move the post body and not other custom fields. Other options we try also hit row blocks as your plugin does not allow us to assign a admin only field to WPBakery.

    So, my question is… how can we display “the_content()” with everything BUT the body of the post. And then how do we add that body into another section of the site?

    Thanks,
    Michael

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Michael

    (@mgparisi)

    wpuf_show_custom_fields <– GIANT FUNCTION, NOT GOOD!

    How can we disable the body from showing with “the_content()”? Can we add a hook here?

    Robin

    (@emazharulislam)

    Hello @mgparisi,

    First of all, I would like to inform you that WPUF shows the custom fields data with the content field when the Show data in the post field is enable/on from the fields advanced settings. For better understanding check this screenshot. Note: Every custom field’ advanced options have this ( Show data in the post ) field.

    So, to achieve your requirement you will need to disable that ( Show data in the post from the fields advanced settings ) first. And then you can use the get_post_meta() function to show the fields data separately based on your requirement. Hopefully, this will help you out.

    Thanks.

    Robin

    (@emazharulislam)

    Hello @mgparisi,

    First of all, I would like to inform you that WPUF shows the custom fields data with the content field when the Show data in the post field is enable/on from the fields advanced settings. For better understanding check this screenshot. Note: Every custom field’ advanced options have this ( Show data in the post ) field.

    So, to achieve your requirement you will need to disable that ( Show data in the post from the fields advanced settings ) first. And then you can use the get_post_meta() function to show the fields data separately based on your requirement. Hopefully, this will help you out.

    Thanks.

    • This reply was modified 5 years, 11 months ago by Robin.
    Thread Starter Michael

    (@mgparisi)

    Thank you for the reply. This had worked perfectly. We are now just making small adjustments to it.

    Thanks,
    Michael

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Don’t show the Body of the Post in the_content();’ is closed to new replies.