• Resolved Der-Bank-Blog

    (@der-bank-blog)


    Hola Hector

    hope your are wll. Just a (for you probaly) easy question. I would like Tom set up a site with popular Posts from a specific category

    My code Looks like this:

    [wpp post_type="post" taxonomy= '565' range="last7days" limit=25 stats_views=0 pid='21334,20553' thumbnail_width=351 thumbnail_height=185 stats_author=1 excerpt_length=400 order_by="views" wpp_start="<ul class='wpp-list' style='margin-left: 0px !important;'>" post_html="<article class='post-24776 post type-post status-publish format-standard has-post-thumbnail'><div class='attachment-main-block size-main-block wp-post-image'>{thumb}<div class='content'><div class='cf listing-meta meta above'><span class='meta-item author'>von: {author}</span></div><h3>{title}</h3><div class='excerpt'><p>{summary}</p></div><div class='read-more'><a href='{url}'>weiterlesen</a></div></div></div></article>"]

    but it does not work. It Shows all categories.

    What did I wrong?

    Cheers from Germany
    Hansj?rg

Viewing 15 replies - 1 through 15 (of 63 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hallo Hansj?rg!

    The taxonomy parameter expects a valid taxonomy name (eg. category, tag, et cetera). You either do this:

    [wpp taxonomy="category" term_id=565]

    … or use the shorthand version, cat:

    [wpp cat=565]

    Hope that clears things up a bit ??

    Have a nice day!

    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    Hola Héctor

    thanks a lot. That helped at least on the way to solve the issue. The result is not quite waht I was expecting.

    I have a lot og Sub cats under /Studien. In the normal view all Posts are listed under the main cat. Not so at wpp.

    Could this be because of the URL-structure?

    Cheers
    Hansj?rg

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hey Hansj?rg!

    I have a lot og Sub cats under /Studien. In the normal view all Posts are listed under the main cat. Not so at wpp.

    Could this be because of the URL-structure?

    Not sure what you mean with this.

    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    Hola Héctor

    I would like to list the top Posts of https://www.der-bank-blog.de/studien. Therefore I followed your tipp above.
    [wpp post_type=”post” cat=565 range=”last30days” …

    but the list was not that I expected.
    https://www.der-bank-blog.de/die-studien-tage/

    In the top lists of all Posts there were a lot of Posts from https://www.der-bank-blog.de/studien which do not appear in the specitic list.

    Cheers
    Hansj?rg

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hey Hansj?rg,

    WPP will retrieve the most viewed posts from that category. Are these posts you’re mentioning among the top viewed in the same category and the same time range?

    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    Hola Héctor

    yes. As you may see here, some of that category are among the most Popular Posts of the last 30 days.
    https://www.der-bank-blog.de/schlagzeilen/top-meldungen-des-monats/
    But they do not Show up in the specific category selection.
    And the list stopps after 5 entries although the Parameter is 25
    Cheers
    Hansj?rg

    Plugin Author Hector Cabrera

    (@hcabrera)

    No idea, to be honest. Could you share a screenshot of your Page Edit screen so I can see how you’re setting the shortcode?

    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    here you are, but it the same as the code above

    top posts

    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    Hola Héctor

    I checked with another category. There it works. Could it be, that the Problem Comes from the subcategories?

    Cheers from Germany
    Hansj?rg

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hey Hansj?rg!

    No idea, to be honest. The function handles all categories the same way.

    I did notice, however, that some of your posts are not being tracked by WPP. I suspect this is because of the caching plugin you have installed on your site. How often does it regenerate its cache?

    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    Hola Héctor

    Cache is renewed every 24 hours. Did you see which Posts are not tracked and why? This is really strange because it seems to affect only the one category which has a lot of subcategories.
    Are you sure, that wpp handle Posts in subcats so that they will be subsummized in the main cat?

    Cheers
    Hansj?rg

    Plugin Author Hector Cabrera

    (@hcabrera)

    I just checked all of the posts from https://www.der-bank-blog.de/die-studien-tage/ and none of them were tracked by WPP. Then, I checked some posts from randomly selected categories and the same thing happened. None of these posts had WPP’s script in it.

    Did you set WPP to track visits only from logged in users? (Settings > WordPress Popular Posts > Tools > Data > Log views from).

    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    That is really strange because wpp seems to work great with all other cats- Setting is “Visitors only”. Log Limit 60 days, Ajax disabled and WPP Cache enabled, refreh every 12 hours

    Plugin Author Hector Cabrera

    (@hcabrera)

    Setting is “Visitors only”.

    If so, then WPP should be able to track my visits as I’m not logged in into your site when I check any of your posts (I don’t have an account there anyways hehe).

    This may have something to do with your caching plugin and the way it’s configured, but this is already outside the scope of support I provide here.

    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    Hola Héctor

    could you give me a hint, what exactly I should ask the developer of the Caching plugin?

    Cheers
    Hansj?rg

Viewing 15 replies - 1 through 15 (of 63 total)
  • The topic ‘Popular posts of a specific Category’ is closed to new replies.