Relative Content

Tag Archive for phpwordpresswoocommerceadvanced-custom-fields

code conflict with two buttons – read more in Woocommerce Descriptions and display content from another post

I have two buttons on my Single Product template, a Read More for the product description in the Product details block (Wordpress theme 2024) and a second that takes the content from a custom post type and displays it when pressed called show composer. This last looks at the contents of an ACF field, matches it against the title of the custom post and displays the content. It does not show if there is no match. A conflict occurs only when the Show Composer button is displayed. The conflict prevents the Read More button from working. To confirm, if there is no Composer found that button does not appear and the Read More button works as expected. If a composer is found the Read More button fails. The only thing I can see that might cause this is that the last line of the Read More code might conflict with a line in the Show Composer code that calls the_content().
But I cant see how to resolve this if it is