Skip to content
Public Ticket #28811

View and read time problem

Conversation thread

MountainCommunication replied

Customer Reply

Now works. Thanks very much

PenciDesign Supporter replied

Staff Reply

Hi,

For this case, please send me your WordPress admin account in a PRIVATE reply.
I'll log in and try to help you check this problem.

Regards,
PenciDesign.


PenciDesign Supporter replied

Staff Reply

Hi,

You've configured the post template with Elementor, so you should remove the post view element in the Elementor Template editor mode.

Regards,
PenciDesign.

PenciDesign Supporter replied

Staff Reply

Hi,

You should paste this code into the function.php of the child theme or via the CodeSnippet plugin here: https://wordpress.org/plugins/code-snippets/

add_filter( 'theme_mod_penci_single_show_cview', function( $value ) {
    if ( is_singular( 'relazione' ) ) {
        $value = false;
    }     return $value; } );

Regards,
PenciDesign.



MountainCommunication replied

Customer Reply

ok until it. It is possible to not show on Post type Relazione?

PenciDesign Supporter replied

Staff Reply

Hi,

The post reading time is currently estimated only from the main post content. The Soledad theme doesn't support calculating the reading time for the entire page. We will consider adding this option in a future theme update.

Regards,
PenciDesign.


MountainCommunication replied

Customer Reply

not it's works. Need to fix last problem: reading time that it only takes as reference the one inserted in the Post content and not in the entire page. 

PenciDesign Supporter replied

Staff Reply

Hi,

You should paste this code into the function.php of the child theme or via the CodeSnippet plugin here: https://wordpress.org/plugins/code-snippets/

add_filter( 'penci_filter_allow_post_type', function( $types ) {
    $types[] = 'relazione';
    
    return $types; } );

Regards,
PenciDesign.



MountainCommunication replied

Customer Reply

now looks work. 

I still not can see and edit view in Post Types Relazioni 

and the problem of reading time that it only takes as reference the one inserted in the Post content and not in the entire page. 

PenciDesign Supporter replied

Staff Reply

Hi,

I've edited the code.

Please clear all the browser caches and check again.

Regards,
PenciDesign.


MountainCommunication replied

Customer Reply

I'll try with codesnippet but don't work

PenciDesign Supporter replied

Staff Reply

Hi,

You should paste this code into the function.php of the child theme or via the CodeSnippet plugin here: https://wordpress.org/plugins/code-snippets/

add_action( 'init', function(){
    if ( is_singular( 'relazione' ) ) {
        penci_get_post_views( get_the_ID() );     }
});

Regards,
PenciDesign.



MountainCommunication replied

Customer Reply

hello, I clear all caches but don't looks work (see attachment)

btw I have other problem... In the Post Types I can't see and edit the post view (see attachment). 

PenciDesign Supporter replied

Staff Reply

Hi,

I've fixed the post view issue by enabling the AJAX post view by going to Appearance → Customize → Single Posts → General: turn on the "Enable Ajax Post View Count" option.

About the post view count, please clear all the site caches and then check again.

Regards,
PenciDesign.


PenciDesign Supporter replied

Staff Reply

Hi,

No, I'm still not logged in and working on your site.

Regards,
PenciDesign.


PenciDesign Supporter replied

Staff Reply

Hi,

For this case, please send me your WordPress admin account in a PRIVATE reply.
I'll log in and try to help you check this problem.

Regards,
PenciDesign.



MountainCommunication started the conversation

Conversation Start

Hello, 

I got a problem with number of view and read time of the post in the pages created with ACF - Post Types. For the reading time it only takes as reference the one inserted in the Post content and not in the entire page. 

As far as views are concerned, it doesn't seem to count it.  

I am waiting for your response. 

Thanks in advance 
Federico

Want to join this conversation or access attachments? Sign in first.