Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author tom-braider

    (@tom-braider)

    yes, there is an shortcode. see the readme.txt for parameters.

    [CPD_MOST_VISITED_POSTS limit="5" days="30" postsonly="1" posttypes="posts,pages"]

    Thread Starter JeanJensenDK

    (@jeanjensendk)

    Hmmm, it doesn’t work as hoped…

    Please have a look at the righthandside widgetarea, last box:
    http://jeanjensen.dk/baronens-fjernstyrede-trial-crawler/

    1: There aint any count
    2: The info is outside the box, and there is only the headline inside the box

    Thread Starter JeanJensenDK

    (@jeanjensendk)

    BTW:

    I placed this:

    [CPD_MOST_VISITED_POSTS limit=”10″ days=”180″ postsonly=”1″ posttypes=”posts”]

    – inside the textarea in the ‘text’-widget box.

    Plugin Author tom-braider

    (@tom-braider)

    do you have written the shortcode in the text widget?

    you also could use a function in the e.g. sidebar.php

    getMostVisitedPostIDs( $days, $limit, $cats, $return_array )

    gets a list of PostIDs you can use in a for loop.

    Thread Starter JeanJensenDK

    (@jeanjensendk)

    I’m not really into the id’s annd loop show 🙁

    Byt yes, I wrote the [CPD_MOST_VISITED_POSTS limit=”10″ days=”180″ postsonly=”1″ posttypes=”posts”] in a text-widget…

    Thread Starter JeanJensenDK

    (@jeanjensendk)

    Okay, I sorted it out:
    [CPD_MOST_VISITED_POSTS limit=”5″ postsonly=”1″ days=”30″]
    – works just as hoped, thank!!

    BUT; the content is placed outside the widget-box (in frontend). Any ideas?

    http://tinypic.com/r/14xgw1s/5

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Most viewed post’ is closed to new replies.