Title: Right names
Last modified: January 6, 2024

---

# Right names

 *  Resolved [ildomandatore](https://wordpress.org/support/users/ildomandatore/)
 * (@ildomandatore)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/right-names/)
 * The name of the miniatures is not the original one. How do I get the right names?
 * > [View post on imgur.com](https://imgur.com/a/HMlnQFC)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fright-names%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [ildomandatore](https://wordpress.org/support/users/ildomandatore/)
 * (@ildomandatore)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/right-names/#post-17322741)
 * 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](https://imgur.com/a/JnN0H5D)
 * > [View post on imgur.com](https://imgur.com/a/MWhhG1L)
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/right-names/#post-17322799)
 * > 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](https://wordpress.org/support/users/ildomandatore/)
 * (@ildomandatore)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/right-names/#post-17322935)
 * It’s this plugin [https://wordpress.org/plugins/easy-table-of-contents/](https://wordpress.org/plugins/easy-table-of-contents/)
   that’s causing problems. I enable the option, hoping you are here.
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/right-names/#post-17322969)
 * 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](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/right-names/#post-17323156)
 * 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](https://plugins.trac.wordpress.org/browser/easy-table-of-contents/tags/2.0.61/includes/inc.functions.php#L201)).
 * 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:
 *     ```wp-block-code
       <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](https://wordpress.org/support/plugin/easy-table-of-contents/)
   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](https://wordpress.org/support/users/hcabrera/).
      Reason: Reworded for clarity
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/right-names/#post-17323200)
 * Update: [temporary workaround](https://wordpress.org/support/topic/plugin-stops-working-14/#post-17323196)
   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](https://wordpress.org/support/users/hcabrera/).
      Reason: Added link
 *  Thread Starter [ildomandatore](https://wordpress.org/support/users/ildomandatore/)
 * (@ildomandatore)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/right-names/#post-17323225)
 * ty for help <3
 *  Thread Starter [ildomandatore](https://wordpress.org/support/users/ildomandatore/)
 * (@ildomandatore)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/right-names/#post-17323327)
 * > 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](https://wordpress.org/support/users/ildomandatore/).
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/right-names/#post-17323347)
 * > 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](https://wordpress.org/support/users/ildomandatore/)
 * (@ildomandatore)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/right-names/#post-17331710)
 * 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](https://wordpress.org/support/users/ildomandatore/)
 * (@ildomandatore)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/right-names/#post-17340351)
 * How can I generate thumbnails with Optimole, instead of your plugin?
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/right-names/#post-17340668)
 * 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.
 * ![](https://i0.wp.com/i.postimg.cc/Qd6v3x95/wpp-thumbnail-source-setting.png?
   ssl=1)
 * You may need to [register a new thumbnail size](https://www.wpbeginner.com/wp-tutorials/how-to-create-additional-image-sizes-in-wordpress/)
   first if none of the available options fit the size you wish to use though.
 *  Thread Starter [ildomandatore](https://wordpress.org/support/users/ildomandatore/)
 * (@ildomandatore)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/right-names/#post-17454022)
 * 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](https://imgur.com/a/EbYBLIk)
 * > [View post on imgur.com](https://imgur.com/a/54vXcpp)
 * If I activate the option, I don’t have the title attribute. So, neither option
   is good.
 * > [View post on imgur.com](https://imgur.com/a/5R26XfG)
 * > [View post on imgur.com](https://imgur.com/a/sL0NOPk)
 * 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](https://imgur.com/a/FNf5czA)
 * > [View post on imgur.com](https://imgur.com/a/zmqbRI3)
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/right-names/#post-17454203)
 * I already covered that issue [here](https://wordpress.org/support/topic/right-names/#post-17323347).
   Anything Rank Math related should be taken to their support team.
 *  Thread Starter [ildomandatore](https://wordpress.org/support/users/ildomandatore/)
 * (@ildomandatore)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/right-names/page/2/#post-17454411)
 * ok, done.

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

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

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

 * 17 replies
 * 2 participants
 * Last reply from: [ildomandatore](https://wordpress.org/support/users/ildomandatore/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/right-names/page/2/#post-17454411)
 * Status: resolved