• Eric Yuhasz

    (@eric-yuhasz)


    I am trying to install a plugin. I can access it from my dashboard just fine, however the final direction to install it states:

    ■Place <?php if (function_exists(‘post_from_site’)) {post_from_site();} ?> in your templates where you want to see the link.

    I am just learning how to create my own blog, so how to I do the above instruction? Where do I put it? I would like it on one specific page in my blog, but how to I put it there?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Clayton James

    (@claytonjames)

    Hello Eric! I’m guessing you might be using the TwentyEleven theme, so that’s what I’ll use. I’ll give you an example that places a quick post link at the bottom of your blog page so you can at least get an idea for where things will appear. Then you should be able to place it wherever it works best for you. Navigate to /wp-content/themes/twentyeleven/ and open the index.php file in a plain text editor. On line 31 you will see this;

    <?php twentyeleven_content_nav( 'nav-below' ); ?>

    Directly below that, paste the plugin code;

    <?php if (function_exists('post_from_site')) {post_from_site();} ?>

    Save the changes and visit your posts page. At the very bottom, under the older – newer posts links, you should now see a link that says “quick post”. When you select it, the post overlay should pop up. That’s a crude example, and you will want to fine tune the location, but it should at lease give you a visual reference to work from.

    Thread Starter Eric Yuhasz

    (@eric-yuhasz)

    Thank you so much for taking the time to respond and in such great detail!! I really appreciate it. Your directions helped. It is not what I was hoping for from the plugin, but your directions worked.

    Thanks again.

    Clayton James

    (@claytonjames)

    You’re welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Place code in a template?’ is closed to new replies.