Hi @qnkov,
The poster code url for my pages is placed second like link, and the first is some function icon image (…)
Are you storing the URL of the second image somewhere (eg. post meta, database table, etc) or is it being inserted directly into the content?
Thread Starter
qnkov
(@qnkov)
Hello, directly in content and for my stupidity i’ve put my poster image url in second link…
Check link: http://prntscr.com/ksb576
I have more than 500+ page like that. If there is way to make it take the second link for thumbnail, i will be glad.
Ah, I remember now. You opened a topic about this issue a few months ago now.
Unfortunately, my answer from back then remains the same: if you want to use WordPress Popular Posts, you’ll need to fix the issue with your images so the plugin can display the right thumbnail. Since you have over 500+ pages that means a lot of manual work. You really should consider posting a job at jobs.wordpress.net to get someone to fix that for you if you don’t have the time or required skills to do it yourself. I would offer you my freelance services but I’m busy with other projects at the moment.
Thread Starter
qnkov
(@qnkov)
Yea, thanks, i was only thinking about some custom light code that can change the way of getting the image, from first, to second, cuz it’s not only to change the url position, but the entier code. That was my desire.
-
This reply was modified 7 years, 9 months ago by
qnkov.
One way to achieve that without much hassle would be by modifying plugin’s code directly but I really can’t recommend that: plugin updates will overwrite any changes you made to its code.
You may be thinking now “well, I could just avoid updating the plugin, right?” but that’s not really a good solution either. Generally speaking, plugin updates don’t just introduce new features but bug fixes and security patches as well. Skipping the last two can create a whole new set of problems for you.
You could try hooking into WPP to customize its HTML output, but then you’d have to write another function to retrieve the second image from your page content in order to use it on your custom popular list. It’s not difficult but it is a bit time consuming to get it done right.
TLDR;
Unfortunately, there’s no “custom light code” that can fix this for you.
Thread Starter
qnkov
(@qnkov)
Is there a problem with the new update to add that function too? Take second image from content? If it will take less time, im sure i will be not the only one with this problem. We may be less too, but…
Is there a problem with the new update to add that function too?
Actually, there is.
Right now you are asking me to add an option to have the plugin use the second image found on post content. Let’s say I accept your request and I implement this on the next release.
Then, two months later someone comes here and asks:
Hey, can you add yet another option so the plugin uses the third image found in content instead?
… and then someone else wants the plugin to pick up the fourth or the fifth image, and so on. You get the picture. It’s not practical at all.
There’s also the fact that I have a policy of not implementing new features unless these benefit the majority of users out there. Implementing a new feature that only a handful of people will use is just not likely to happen.
Thread Starter
qnkov
(@qnkov)
I’ve just asked man. It won’t kill anyone having more options. It was just a request.
I know so please don’t take this as a personal attack. It isn’t. You asked a question, I answered it.
Since it seems we’ll have to agree to disagree, I’m marking this topic as resolved.
If you have any other questions regarding my plugin please don’t hesitate to ask, I’ll do my best to help.