Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter ildomandatore

    (@ildomandatore)

    Your shortcode stops working if I enable Load popular posts list via AJAX. Or maybe it’s too server intensive. With other cache plugins I had no problems and performance was fast. But with LiteSpeed Cache, this problem arises.

    View post on imgur.com

    View post on imgur.com

    Plugin Author Hector Cabrera

    (@hcabrera)

    The name of the miniatures is not the original one. How do I get the right names?

    Unfortunately they cannot be changed.

    Your shortcode stops working if I enable Load popular posts list via AJAX.

    Without more details I can’t say what’s going on. I checked your site and the AJAX functionality is currently disabled. Please enable it so I can have a look.

    Thread Starter ildomandatore

    (@ildomandatore)

    It’s this plugin https://ww.wp.xz.cn/plugins/easy-table-of-contents/ that’s causing problems. I enable the option, hoping you are here.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Unfortunately I’m not near my computer right now so I can’t check.

    If you know 100% for sure that the problem is being caused by that plugin you could either try reaching out to its developer and see if they can help identify why it conflicts with WordPress Popular Posts, or you may also consider finding another table-of-contents plugin that doesn’t conflict with WPP.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Alright, quick update: so the problem with Easy Table of Contents is that this particular plugin attempts to modify anything that resembles a heading it can find in the entire HTML document via the init and shutdown action hooks (see relevant code).

    And so it happens that it also messes around with WPP’s inline JSON code which shouldn’t be interpreted as HTML as it’s just a JSON string, like so for example:

    <script type="application/json">{"title":"","limit":"3","offset":0,"range":"all","time_quantity":24,"time_unit":"hour","freshness":false,"order_by":"views","post_type":"post","pid":"","cat":"","taxonomy":"category","term_id":"","author":"","shorten_title":{"active":false,"length":0,"words":false},"post-excerpt":{"active":false,"length":0,"keep_format":false,"words":false},"thumbnail":{"active":false,"build":"manual","width":0,"height":0},"rating":false,"stats_tag":{"comment_count":false,"views":true,"author":false,"date":{"active":false,"format":"F j, Y"},"category":false,"taxonomy":{"active":false,"name":"category"}},"markup":{"custom_html":true,"wpp-start":"<ul class=\"wpp-list\">","wpp-end":"<\/ul>","title-start":"<h2>","title-end":"<\/h2>","post-html":"<li>{thumb} {title} <span class=\"wpp-meta post-stats\">{stats}<\/span><\/li>"},"theme":{"name":""}}</script>

    The consequence of that is WPP being unable to load as you already saw.

    So please reach out to the Easy Table of Contents Support team and request them to consider updating their code so it only alters headings that are found inside the <body> portion of the page and are actual HTML tags instead of any string that starts with <h.

    • This reply was modified 2 years, 5 months ago by Hector Cabrera. Reason: Reworded for clarity
    Plugin Author Hector Cabrera

    (@hcabrera)

    Update: temporary workaround has been posted over Easy Table of Contents’ support forum. Marking this topic as resolved.

    • This reply was modified 2 years, 5 months ago by Hector Cabrera. Reason: Added link
    Thread Starter ildomandatore

    (@ildomandatore)

    ty for help <3

    Thread Starter ildomandatore

    (@ildomandatore)

    The name of the miniatures is not the original one. How do I get the right names?

    Unfortunately they cannot be changed.

    What do you mean you can’t change the name of the images? It should have the name of the original image, but instead it appears as a completely different name.

    Furthermore, the title attribute of the images added by Rank Math is the name of the site. This means that your plugin images generate a 404 error, because I put an automatic 404 error redirect to the homepage. In fact Rank Math reports error 404, but I didn’t understand where. Probably from your plugin. This would also explain why the name of the images is incorrect.

    Finally, the images generated by your plugin still fail to be optimized by optimole. The other images yes! I always think about the 404 error in the images on your plugin and therefore Optimole does not recognize the images and does not optimize them.

    • This reply was modified 2 years, 5 months ago by ildomandatore.
    Plugin Author Hector Cabrera

    (@hcabrera)

    What do you mean you can’t change the name of the images? It should have the name of the original image, but instead it appears as a completely different name.

    It’s just how WordPress Popular Posts generates its own thumbnails and there’s no way to change the filename. You’ll have to learn to live with that πŸ˜›

    Furthermore, the title attribute of the images added by Rank Math is the name of the site.

    This has nothing to do with WordPres Popular Posts. Please reach out to the Rank Math support team for assistance with this.

    Finally, the images generated by your plugin still fail to be optimized by optimole.

    This too is something you need to report to the Optimole team.

    Thread Starter ildomandatore

    (@ildomandatore)

    I have no problem with the thumbnails being generated by your plugin, but I get 404 code. In fact the title attribute has the name of the homepage instead of having the file name.

    If there was no 404 error, Rank Math would add the name your plugin adds.

    Thread Starter ildomandatore

    (@ildomandatore)

    How can I generate thumbnails with Optimole, instead of your plugin?

    Plugin Author Hector Cabrera

    (@hcabrera)

    If you’re using either the WordPress Popular Posts block or the classic widget you can instruct the block/widget to use regular WordPress thumbnails instead of WPP’s ones by selecting the “Predefined size” option and then picking the thumbnail size you wish you use.

    You may need to register a new thumbnail size first if none of the available options fit the size you wish to use though.

    Thread Starter ildomandatore

    (@ildomandatore)

    I still have the wrong title attribute problem and it occurs with the Load popular posts list via AJAX option disabled.

    View post on imgur.com

    View post on imgur.com

    If I activate the option, I don’t have the title attribute. So, neither option is good.

    View post on imgur.com

    View post on imgur.com

    The title attribute appears correctly on category images and on the featured image of posts.

    I use Rank Math to generate the title attribute and alt attribute.

    View post on imgur.com

    View post on imgur.com

    Plugin Author Hector Cabrera

    (@hcabrera)

    I already covered that issue here. Anything Rank Math related should be taken to their support team.

    Thread Starter ildomandatore

    (@ildomandatore)

    ok, done.

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Right names’ is closed to new replies.