WordPress.org

Forums

Insert PHP
Will this work with (2 posts)

  1. Celestialpetals
    Member
    Posted 1 year 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 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Insert PHP
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.