WordPress.org

Ready to get started?Download WordPress

Forums

AJAX Hits Counter + Popular Posts Widget
[resolved] Using Placeholder outside a widget (7 posts)

  1. vlococo
    Member
    Posted 1 year ago #

    Thanks for you useful plugin.

    Is it possibile to call placeholder outside a widget?
    Inside the code of archive.php i.e. ?

    http://wordpress.org/extend/plugins/ajax-hits-counter/

  2. kutsy
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry, but this is impossible.

  3. vlococo
    Member
    Posted 1 year ago #

    Ok thanks...

  4. kutsy
    Member
    Plugin Author

    Posted 1 year ago #

    From v0.7.2 you can use function ajax_hits_counter_get_hits( $post_id ) to get hits for post ID.
    Maybe it can helps.

  5. icemaax
    Member
    Posted 1 year ago #

    Great Plugin.
    The function is needed coded in the Editor (singlepost.php)
    as
    <?php ajax_hits_counter_get_hits( $post_id )?>
    or is posible insert in the post manually
    Thanks

  6. kutsy
    Member
    Plugin Author

    Posted 1 year ago #

    is posible insert in the post manually

    You can use this code anywhere.

  7. murray654
    Member
    Posted 10 months ago #

    Thanks

    My working code:

    <?php _e('Hits:'); ?> <?php echo( ajax_hits_counter_get_hits( get_the_ID() ))?>

    I finally figured it out.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.