Support » Plugin: WooCommerce » Get the_title of POST for PRODUCT

  • Resolved bananenkopf

    (@bananenkopf)


    Hey,

    i am using content-product to show a product inside a wordpress post.

    Now the product should be related to the post, so I need to get the post title inside the woocommerce product.

    When i use get_the_title, the_title … i always get the title of the product, not the post.

    Is there a way to get this?

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Support Andrew

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    That would depend on how and in what order you are calling the title, so you’d want to look at calling it outside of where you are currently calling it.

    I’d look at asking in the Advanced WooCommerce Group on Facebook (https://www.facebook.com/groups/advanced.woocommerce) as they are a bit more in tune with development stuff like this, so they hopefully can help you out.

Viewing 1 replies (of 1 total)
  • The topic ‘Get the_title of POST for PRODUCT’ is closed to new replies.