• Hi all

    I’m trying install a plugin called readers posts.
    link: http://www.aufzynden.de/post-readers-wp-plugin/#english
    and
    http://www.marialanger.com/2006/12/09/article-hits/

    Its looks like a fantastic plugin but as you’ll see from the link the directions are a bit skimpy for the “php challenged”. I’m hoping somebody could help me with out here with what code I need to place in the loop.

    Going by what it says on the site just simply adding “readers(’You are number ‘,’ reading this post’);” and activating the plugin will get things up and running. This resulted in an error, as did enclosing the above code in php tags.

    Also, the directions state your supposed to call the function in either single.php or page.php. My template (almost spring) has both.

    Thanks in advance! http://supertv.jp/

Viewing 4 replies - 1 through 4 (of 4 total)
  • 1. Get rid of those ugly “curly” quotes: don’t copy the code from the plugin’s site, but TYPE it!
    2. There are different snippets given to use inside the Loop and outside of it.
    3. Yes, you should always put those tag exmaples in between
    <?php ..... ?>
    4. Single.php displays the single post view, and page.php is used to display your Pages (created in Write > Write Page).

    Thread Starter WonderJunky

    (@futureproof)

    Ok thanks moshu! I’ll give it a go and report back.

    Thread Starter WonderJunky

    (@futureproof)

    Hi again. It worked! Thanks! Now I have to figure out how to make a top 10 posts section for my sidebar. My sidebar is widgetized and unless Im mistaken you cant place php in a text widget right?

    So, I’ll have a go at editing the sidebar directly. How about using this formatting:

    <li id=”categories”>
    <h2><?php _e(‘Categories’); ?></h2>

      <?php wp_list_cats(); ?>

    and replacing it with the appropriate code to call the last_posts function? Should that do it?

    Thread Starter WonderJunky

    (@futureproof)

    I installed the execphp widget. Dropped the php code in there and styled it using inline styles and its working perfectly 🙂 I feel like Im actually starting to get the hang of this..hehe.

    thanks again moshu.

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

The topic ‘Trying to install a plugin – php help needed.’ is closed to new replies.