WordPress.org

Ready to get started?Download WordPress

Forums

Insert PHP
Will this work with (2 posts)

5 stars
  1. Celestialpetals
    Member
    Posted 4 months ago #

    I am trying to add a php code for a slider plugin to my website header or pages. Will this work?

    EX Tag:
    <?php if(sb_slides_display()){sb_slides_display();} ?>

  2. jayanthvarmab
    Member
    Posted 3 months ago #

    if you want to do it in site run by wordpress then install insert_php
    plugin

    http://wordpress.org/plugins/insert-php/

    and use this syntax.

    [insert_php] instead of <?php
    and
    [/insert_php] instead of ?>

    like this:

    [insert_php]
    //your code here
    [/insert_php]

    and that to in the text part of the page/post editor, not in the visual editor.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.