• On the “all posts” page in the WP admin back-end there is an option to have a column showing the post count. It is automatically there under Screen Options > Columns > Post Views, as a tick box. If I tick the box I get a column that shows the view count for each post.

    I have a custom post type, called “Reviews”, with a similar page with all Reviews posts in the WP back-end, “all reviews”. On that (custom post type) post listings page this option to show the Post Views does not exist.

    Is there any way to get a Post Views column on the custom post type listings page?

    (I know that the Post Views Counter works on the custom posts types since I have it set to display on the front-end on the actual posts shown to visitors, and there it displays correctly.)

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

    (@dfactory)

    Hi,

    It should be working. The only requirement is that a given post type is being counted by the PVC. If it’s set for a given post type then the view column should be there. If it’s not maybe it’s not a native WP custom post type listing page (a list table as it is called in WP) or, especially if a post type has been added by a plugin, there might be some tweaks applied that prevent that. In every other case, and in great majority of cases, it should be there.

    Thread Starter bkwineper

    (@bkwineper)

    I’ve created the custom post type with the plugin CPT-UI (Custom Post Type UI). You think that could be the reason? I think that’s the most commonly used way to create custom post types.

    Plugin Author dFactory

    (@dfactory)

    It should be fine I think. I ment plugins that use CPTs for heavilly customized functionalities. Really, not sure what could be the reason. I checked that once again and that works exactly as described – a CPT that is counted has a column with post views.

    Thread Starter bkwineper

    (@bkwineper)

    In my case, the view count shows on the front-end for the custom post types. As you can see on this: https://postimg.cc/bddvrz4g

    However, in the admin back-end, there is no column for view count on the custom post type (“recensioner” is the name of the custom post type). As you can see here: https://postimg.cc/BL9d0CWR

    (On the standard posts, however, there is such a column: https://postimg.cc/8jXkVxZ3)

    Any idea what the issue might be or how to fix it?

    Plugin Author dFactory

    (@dfactory)

    I understand. Just saying it should be there just like for posts. Question: if you enter single post for that “recensioner” CPT do you see the views count there? (should be there too, just like for posts)

    Thread Starter bkwineper

    (@bkwineper)

    Not sure I understand what you mean with “if you enter single post for that “recensioner” CPT”. The post published as “recension” are the custom post type. You mean that I should change the post type to standard single post for an existing CPT post instead of the custom post type? Is that possible? How would I do that?

    (I do have standard single posts and they have the post count in a column.)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Show view count on custom post types listing page’ is closed to new replies.