• Resolved deadhippo

    (@deadhippo)


    Hi, I am trying to add this plugin but I have to add code as per the install instructions but I don’t know where I am supposed to add it. I am very new to wordpress and know almost nothing about php.

    This is the code I have to install

    <?php if (function_exists('wp_notable')) wp_notable(); ?>

    I am told to add it “to your template in the loop area.” I am using the tarski template and I have no idea where the loop area is.

    Can anyone help?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The loop almost always begins:

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>

    and ends:

    <?php endif; ?>

    So you want to put the notable code in between there – probably just above it, so the icons will be below the post content area.

    [See The_Loop for documentation on the loop.]

    Thread Starter deadhippo

    (@deadhippo)

    Thank again for your help. I was wondering which file the loop is in but I may be able to find out from your link, thanks.

    Ouch. Sorry, forgot that! Sheesh. It’s in your theme’s index.php file.

    Wow. Must be bedtime….

    Thread Starter deadhippo

    (@deadhippo)

    Hi,
    NP, I thought that is where it should be but this is the total contents of my theme’s index.php

    <?php get_header(); ?>
    <?php include(TEMPLATEPATH . '/loop.php'); ?>
    <?php get_sidebar(); ?>
    <?php if(is_single() || is_page()) { comments_template(); } ?>
    <?php get_footer(); ?>

    I guess that I should put the code in loop.php but I don’t know where. I have tried a few positions but to no visible effect.

    This is the code in the loop.

    http://wordpress.pastebin.ca/380653

    To moderator: Sorry about that, but you also deleted some of my post.

    [moderated: WAY too much code. Consider using a pastebin service such as http://wordpress.pastebin.ca and posting a link back to here.]

    Thread Starter deadhippo

    (@deadhippo)

    OK, It was my mistake. I thought it would display on the main page but I now understand that you have to click on the actual article to see it.
    Thanks for your help guys.

    I do have one more problem though. The images are not showing and according to the creators it means my mage path is wrong. Does anybody know where to find it and how to fix it?

    You can see and example of the problem on my blog.

    Thread Starter deadhippo

    (@deadhippo)

    As this was a separate topic originally I created a new post. You can find the solution to my problem there.

    http://wordpress.org/support/topic/108780?replies=1

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

The topic ‘wp-Notable plugin – Where do I put the code?’ is closed to new replies.