Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Content Views

    (@pt-guy)

    Hi there,
    You can create & activate child theme, then add PHP code to the functions.php file in the child theme directory.

    Or you can install another plugin to add PHP code to your site.

    Best regards,

    Thread Starter Sewlicious

    (@sewlicious)

    I added the code to the front-page file and got an error saying it could not handle the request when I tried to view my website.

    Plugin Author Content Views

    (@pt-guy)

    Hi,
    It might have a syntax error in your code.
    Can you paste the code here?
    We will check and correct it for you.
    Best regards,

    Thread Starter Sewlicious

    (@sewlicious)

    Here’s the code <?php echo do_shortcode(“[pt_view id=eb5ffabw7o]”); ?>

    thank you for your help!

    Plugin Author Content Views

    (@pt-guy)

    Thank you for your reply.
    But we need the whole code of your front-page file after you added this code <?php echo do_shortcode(“[pt_view id=eb5ffabw7o]”); ?>.
    Might you please send?

    Best regards,

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘PHP Code’ is closed to new replies.