![]() |
A Wordpress script/plugin that can do this?
When you create "galleries" or posts in wordpress, you get the option to let each thumb link to:
1. Attachement page, 2. Media File, 3. none Anyone know if there is a script/plugin that can change ALL the blog posts to one or the other? Thanks |
it would be useless by my opinion. wouldn't be? if you can change all links at once, there would be option to change only to one specific link. it could be useful if you want to set all to none or to change only first part of the link like domain and directory.
anyway, check this plugin, maybe this you can use it somehow: https://wordpress.org/plugins/velvet-blues-update-urls/ |
talk to homer simpson he's good
|
Tom, thanks man, will check it out. The reason I'm asking is, I want to raise my clicks to sponsors for more chance of sales, from linking eat thumbnail to a page ,and on that page the large image links to the sponsor, and also bottom/top of image could put some adverts too.
brassmonkey, thanks, I'll search for Homer's contact info and give him a wassup :) |
Ops ...
|
Quote:
|
Quote:
|
Find it in the database, and change it there.
|
That would be a cool plugin.
|
Quote:
Quote:
Quote:
Quote:
|
You mean to have it by default one or the other or to change it for existing content or both?
|
Quote:
|
Quote:
[gallery] - linked to attachment [gallery link="file"] - linked to file [gallery link="none"] - not linked Let's consider that all your gallery thumbnails are linked to attachments and you want to make them liked to the actual images. In other words, you have to replace this: [gallery] with this: [gallery link="file"] I'll show how to do it with the CyberSEO plugin, which almost all GFY's already have.
If you want to do the opposite (i.e. make all the thumbnails to link to attachments instead of original images), you should use this code in step #3: Code:
$post->post_content = str_replace('[gallery link="file"]', '[gallery]', $post->post_content); |
Quote:
|
Quote:
|
Quote:
|
https://wordpress.org/plugins/search-and-replace/
Maybe you would use this plugin to replace the string/shortcode in all the posts? |
Quote:
|
If for existing content only, you can run a query to modify the database value for all current items, it's only a matter of looking at the database and identifying what is where and afterwards querying it to set the desired values.
I do agree to what CyberSEO says to some degree, if one doesn't know what to do, shit can hit the fan, but it's common sense that when you modify a database directly, you have the required knowledge to do so. I'm not a huge fan of WordPress, i usually code my own shit, but from the rare occasions i did work with it, it has indeed the setup that where if one doesn't pay attention when dealing with the database, it can fuck everything up in no time. |
All times are GMT -7. The time now is 04:16 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc