Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #3665451
View and read time problem
Closed

Comments

  • MountainCommunication started the conversation

    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

    Attached files:  problema tema.png

  •  2,609
    PenciDesign replied

    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 replied privately
  •   MountainCommunication replied privately
  •  2,609
    PenciDesign replied

    Hi,

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

    Regards,
    PenciDesign.


  •   MountainCommunication replied privately
  •  2,609
    PenciDesign replied

    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.


  • MountainCommunication replied

    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). 



    Attached files:  Immagine 2024-06-13 102758.png
      post view.png

  •  2,609
    PenciDesign replied

    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

    I'll try with codesnippet but don't work

  •  2,609
    PenciDesign replied

    Hi,

    I've edited the code.

    Please clear all the browser caches and check again.

    Regards,
    PenciDesign.


  • MountainCommunication replied

    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. 

  •  2,609
    PenciDesign replied

    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

    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. 

  •  2,609
    PenciDesign replied

    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

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

  •  2,609
    PenciDesign replied

    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.



  •  2,609
    PenciDesign replied

    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.

  • MountainCommunication replied

    Hello, I still have the views issue, it doesn't seem to count them

    https://www.redclimber.it/relazione/alpinismo-alta-quota/roccia-viva-parete-nord/

  •  2,609
    PenciDesign replied

    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 replied privately
  •   PenciDesign replied privately
  • MountainCommunication replied

    Now works. Thanks very much