-
AuthorPosts
-
June 5, 2020 at 7:37 pm #1219912
Hi, guys,
who’s gonna help me fix this thing?I have installed the PostView plugin to view count readed and I would like to insert it in the blog meta posts, as shown in the image belowe:
This is the function of the plugin:
<?php if(function_exists('the_views')) { the_views(); } } ?>
Thanks in advance
Regards
LouisJune 8, 2020 at 9:53 am #1220411*** BUMP ***
Hi guys,
Any help please?June 8, 2020 at 7:03 pm #1220570Hi BigBatT,
You will need to edit the /includes/loop-index.php file to add this to the post meta.
Please refrain from replying to your own thread because it gets pushed back to the end of the queue and moderators won’t be able to provide a response immediately. Please be patient while we go through the rest of the queue. Thank you for your understanding.
Best regards,
VictoriaJune 10, 2020 at 9:20 am #1221112Hi @victoria_d,
forgive my “bump” ;)
Anyway thanks for the support, it was very helpful and I solved my problem.
You can close this thread
Regards
LuigiJune 10, 2020 at 12:33 pm #1221165For all those who want to implement this function or add more, this is the plugin I use PostViews and here below the code:
1. Download the plugin PostViews and install it
2. Go to Enfold > includes > and open whit a text editor loop-index.php
3. Search around line 400if( ! empty( $cats ) ) { echo '<span class="blog-categories minor-meta">' . __( 'in','avia_framework' ) . ' '; echo $cats; echo '</span><span class="text-sep text-sep-cat">/</span>'; }
4. Just below add this code:
### Funzione visualizzazioni (Views function) if(function_exists('the_views')) { echo "<span class='views-container minor-meta'>"; the_views(); echo '</span>'; echo "<span class='text-sep text-sep-comment'>/</span>"; }
Done!
This is the result ;)
Regards
LuigiJune 11, 2020 at 6:45 am #1221528 -
AuthorPosts
- The topic ‘Add function to blog meta’ is closed to new replies.