Incorporate WP Post Views

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6868
    Christian Mead
    Guest

    Hi.

    I have recently installed the Frontier theme, and was wondering if there is an easy way to add the post views as an Article Elements in the Blog View?? I use the WP-PostViews plugin at the moment.

    I hope you can assist 🙂

    Many thanks, CJay

    #6871
    Ron
    Keymaster

    If you’re using a child theme then you can try adding this on your child theme’s functions.php

    add_action( 'frontier_after_blog_post_byline', 'ra_postviews_byline' );
    
    function ra_postviews_byline() {
       if ( function_exists('the_views') ) {
          the_views();
       }
    }
    #6881
    Christian Mead
    Guest

    Thanks Ron. Probably a silly question, but I have downloaded the child theme, but don’t know how to install it?? Hope you can help.

    #6890
    Ron
    Keymaster

    You install it the same way as any other theme.
    Appearance -> Themes -> Add New -> Upload Theme
    https://ronangelo.com/how-to-install-a-wordpress-theme/

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Frontier’ is closed to new topics and replies.