Title: Hard coding a plugin call into index.php
Last modified: August 19, 2016

---

# Hard coding a plugin call into index.php

 *  [johnfrum](https://wordpress.org/support/users/johnfrum/)
 * (@johnfrum)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/hard-coding-a-plugin-call-into-indexphp/)
 * I want to put the phpBay plugin in the middle column of a three-column layout.
   I entered [phpbay]……[/phpbay] in the index.php and that didn’t work. The display
   was of the code itself.
 * Can anyone tell me what code I have to put in my index.php file to make the phpbay
   plugin work?
 * Thanks.

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/hard-coding-a-plugin-call-into-indexphp/#post-1276596)
 * Please provide a link to download that plugin — that will help someone trying
   to help you.
 *  Thread Starter [johnfrum](https://wordpress.org/support/users/johnfrum/)
 * (@johnfrum)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/hard-coding-a-plugin-call-into-indexphp/#post-1276620)
 * It’s a paid-for plugin, so I can’t do that.
 * AllI need is the format of the code for calling a plugin from WordPress from 
   the index.php file.
 * I used [phpbay]……[/phpbay], but it’s obviously got to be in some form like <?
   php…..?>, maybe a get statement or something likethat.
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/hard-coding-a-plugin-call-into-indexphp/#post-1276644)
 * If that plugin author supports shortcodes, then you could do:
    `<?php echo do_shortcode('[
   phpbay]'); ?>` but since that’s a plugin you bought, might check with the author.
 * Also many plugins have some kind of function that you can use but again you’d
   need to look at their docs or speak to the plugin author.

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

The topic ‘Hard coding a plugin call into index.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [MichaelH](https://wordpress.org/support/users/michaelh/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/hard-coding-a-plugin-call-into-indexphp/#post-1276644)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
