• Resolved hbk747

    (@hbk747)


    Hi, I wanted to know if it is possible to enable thumbnails on mobile devices. Currently, only the names of the posts and rank (1,2,3…) show on mobile. I am using another plugin for recent posts and that one shows thumbnails on mobile.

    I hope you can help me. If there is a code to alter on the php files that will allow this, please let me know where exactly to paste what code.

    Thanks!

Viewing 15 replies - 16 through 30 (of 33 total)
  • Thread Starter hbk747

    (@hbk747)

    WP does not allow multiple authors for a blog post. To overcome this, I use the plugin Co-Authors Plus. This allows several people to be cited as the authors of a post.

    Then there was the issue that my theme did not show the names of all the authors of a post. It would only show the first authors name on the homepage under the post thumbnail. I changed a bit of code so it would check if there are co-authors and it would fetch them, if not, it fetches the solo author. I got the code from some website but it works.

    I also had to change the themes code so author boxes of multiple authors are displayed in a post. By default it would only show the first authors author box even if there were more than one authors. Thats why I was saying that I hope all authors of a post get credited with views rather than one author. I dont know if it would help but i can copy paste the coauthors code I used to display all authors. Maybe it could help? idk

    Plugin Author Ajay

    (@ajay)

    If you can share that code would be great. I don’t know Co-Authors Plus so not sure how that works. Not sure however, how easily doable it is – will have a look

    Thread Starter hbk747

    (@hbk747)

    Co-Authors Plus just allowed multiple authors to be added in a post. The problem then was that they were not being displayed on homepage or when you click on the posts.

    The codes that I am pasting below allowed coauthors to be displayed under blog post thumbnails (homepage) and also when you click on (open) the posts themselves respectively.

    
    function gutenverse_meta_front() { ?>   
    	<p class="meta meta_deko tranz <?php $themnific_redux = get_option( 'themnific_redux' ); if(isset($themnific_redux['tmnf-post-meta-dis']) ? $themnific_redux['tmnf-post-meta-dis'] : null) echo 'tmnf_hide';?>">
    		<?php 
    		echo '<span class="author"><span>'; esc_html_e('Written by ','gutenverse');echo '</span>'; if ( function_exists( 'coauthors_posts_links' ) ) {
        coauthors_posts_links();
    } else {
        the_author_posts_link();
    };echo '<span class="divider">&bull;</span></span>';
    		?>
    function gutenverse_meta_single() { ?>    
    	<p class="meta tranz <?php $themnific_redux = get_option( 'themnific_redux' ); if(isset($themnific_redux['tmnf-post-meta-dis']) ? $themnific_redux['tmnf-post-meta-dis'] : null) echo 'tmnf_hide';?>">
            <?php 
    		echo '<span class="author"><span>'; esc_html_e('Written by ','gutenverse');echo '</span>'; if ( function_exists( 'coauthors_posts_links' ) ) {
        coauthors_posts_links();
    } else {
        the_author_posts_link();
    };echo '<span class="divider">&bull;</span></span>';
    		?>
    Plugin Author Ajay

    (@ajay)

    Thanks – i’ve been looking at the coauthor-plus code and it looks like I’ll have to do some level of testing to add compatibility.

    Plugin Author Ajay

    (@ajay)

    Thread Starter hbk747

    (@hbk747)

    No problem. I hope you can address this issue as my website will have many co-author posts. I hope to give them proper attribution!

    Congrats on the add-on!
    I sincerely thank you!

    and good luck!
    Let me know if I can help in any way and keep me updated please!

    Thread Starter hbk747

    (@hbk747)

    Bro I feel very bad for bothering you over and over again. But I hope you can also add a picture feature (thumbnail?) for the authors (similar to popular posts).

    I have many authors and guest authors (some with pictures, others without).

    I will rate the plugin 5 stars now!

    Plugin Author Ajay

    (@ajay)

    Yes – that is also the plan in the roadmap – I wanted to get a version out and I think there is a lot more to come – photos, author boxes (hopefully) etc.

    Thread Starter hbk747

    (@hbk747)

    Wow sounds great! I am glad you are taking this as serious as I am xD

    Thanks again!

    and good luck! The plugin is working perfectly so far!

    Thread Starter hbk747

    (@hbk747)

    Oh and just for your knowledge, I have checked if in fact, the plugin is counting ONLY the first author in a multi-authored post, and the answer is yes.

    For example, lets say there is a post titled Alpha and John Cena is displayed as first author while Kenny is author 2, and Smith is author 3. This post has 88 views but all of those views will go to John Cena and not the other 2 authors.

    If there is another post titled Beta and has 100 views, and Kenny is now first author, and John Cena is second author, all the views go to Kenny.

    Top Authors would be:
    Kenny (100)
    John Cena (88)
    Smith (0)

    Kenny’s 88 views from Post Alpha are not counted and neither are Cena’s 100 from post Beta.

    Hope that helps!

    Thread Starter hbk747

    (@hbk747)

    Also, I checked and I am pretty sure right now the views are being counted for posts and pages.

    For example, my views were 1000 plus although I only had 2 posts which had 100 views combined.

    But then I realized that the plugin is probably counting the homepage, about us etc. that I (admin) created. A toggle option to turn off pages views would help a lot!
    Unless there is an option, and I missed it?

    Plugin Author Ajay

    (@ajay)

    Thanks for the feedback – no options page right now – I need to add a checkbox into the widget to allow you to exclude admins.

    The mutli-author need the compatibility with Co-Author plus which requires quite a bit of coding as I’m now roughly clearer on how that plugin works. That will take time for me.

    Right now on pages and custom post types also get included in the counts – that is a valid one I need to exclude.

    Thread Starter hbk747

    (@hbk747)

    No problem. Sounds good. The co-author thing is tricky as you say. Take your time.

    Thanks again!

    Thread Starter hbk747

    (@hbk747)

    Hi,

    I have made my website temporarily live and I still cannot see the thumbnails (top 10 posts) on the mobile (neither can my friends). Here is the link
    https://www.paradigmshift.com.pk

    Scroll down to the “most read” posts on the homepage and you can see that the thumbnails are not displaying.

    Also any update on the other plugin?

    Take care

    Plugin Author Ajay

    (@ajay)

    Just studied your site, the reason you don’t see the thumbnail is because of the custom styles that your theme sets (pretty cool from what I can see) for the widgets.

    There is a file in your theme gutenverse called style-mobile.css which has this rule:

    
    	.slideinside p.teaser,
    	.tptn_posts_widget li>.tptn_link{ display:none;}
    
    

    That causes it to display no thumbnail for any screen width below a certain level. You can remove this and try again.

    On the other plugin, any updates are a long time away – I only code in my free time, which I’ve had very little of recently.

Viewing 15 replies - 16 through 30 (of 33 total)
  • The topic ‘Plugin not displaying thumbnails on mobile’ is closed to new replies.