Using wp functions on site - by sisalik - on WordPress WooCommerce support

This topic has 4 replies, 2 voices, and was last updated 4 years, 5 months ago ago by Olga Barlow

  • Avatar: sisalik
    sisalik
    Participant
    July 1, 2021 at 13:29

    Hello!

    How to use WordPress PHP functions on site, i.e the_modified_date(‘d.m.Y, H:i’)?
    I am using Bakery.

    3 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Participant
    July 1, 2021 at 15:17

    Hello,

    Sorry, but your question is not very clear for me. You can use PHP functions (default or custom) according to PHP rules. If you need to make customization use the child theme for these purposes https://www.8theme.com/documentation/docs/child-theme/ and don’t make changes in the parent theme files because you will lose them after the theme update.

    Regards

    Avatar: sisalik
    sisalik
    Participant
    July 1, 2021 at 20:30

    I need to show data from database, like options, pages data, meta data using different functions (i.e the_modified_date). I see, I can use HTML blocks, but no PHP blocks?

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    July 2, 2021 at 11:11

    Hello,

    Because it does not work in this way. If you need to make any PHP changes using child theme functions.php. Create shortcodes and then use these shortcodes in the frontend HTML blocks.

    Regards

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘using wp functions on site’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.