How to automate the creation of titles for images • WordPress Help

As you already know, WordPress creates the titles of your images, the label title automatically starting from file name but neither is the perfect choice always nor does it complete other important fields like the description, the alternative title or even the legend.

This has a solution in part, and we will help with the plugin Format Media Titles . Once installed we will go to the settings page of the same, where we can automate some aspects about the automatic format of the titles of the images when uploading them.

 adjustments format media titles WordPress

We can remove characters as scripts, underscores and more, or also convert all words to uppercase, lowercase or capitalize.

And finally, and almost more interesting, use the generated title also as an alternative title, description and even legend .

Of course, just miracles if the file title is of type DSC129FT122 it's as if you did nothing, You get shit, nicer, but shit after all.

Okay, you'll tell me it's not perfect, that those fields are different and we have to complete one by one, adapting them to their real objective. Okay, but is not this better than nothing?

Especially in an editorial environment where there are several authors and you do not control everything they do, or just do not have time will not better be better titles? that some non-existent titles?

In an ideal world we would always do the following:

  1. Put a file name with the keywords of its content, semantically, before uploading it.
  2. We would specify a title with the appropriate keywords and in a human-oriented semantic context.
  3. We would write a good description in which we will not only explain what is seen in the image but also including labels that identify it in terms of color, elements that compose it, if it is real photography or design, etc.
  4. We would write an alternative descriptive text of what is seen in the image, thinking about the much-abandoned world of accessibility . [19659] 017] If this is your case and you have completely controlled the editorial environment of your great website, but we do not live in an ideal world most of the time, and it is better to offer something that does not offer anything, at least in publications that you do not fully control.

    That's the idea.

    NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

    Loading …

    That may also help you:

Set all default image insert settings • WordPress Help

So if you want to always use the same customized settings for your attached images, instead of setting them each time, you just have to add the following code to your liking, which you will have to add to your utilities plugin or to the file functions.php of your active theme:

// Custom settings for attached images

function wps_attachment_display_settings () {

update_option ( 'image_default_align' 'left' ) ; // Image alignment

update_option ( 'image_default_link_type' 'none' ) ; // What the image links to

] update_option ( 'image_default_size' 'large' ) ; // Image size

]

add_action ( 'after_setup_theme' 'wps_attachment_display_settings' ) ; [1 9659044] You just have to change the values ​​of each parameter to indicate the ones you prefer. The possible ones are the following:

Remove or change the default link for the images • WordPress Help

Surely more than once you will have noticed that when you insert an image it appears by default linked to something normally to the last one you linked the previous image or, by default WordPress to the file of the whole image. This is convenient if you always link to the same (file, attachment, URL), and you can always change it, but you can force the default link to whatever you want or anything .

To get it you can address the problem with 4 different solutions, all with the same result. Let's see them …

Always choose manually what each image links to

Before we get into gardens and modify anything to default values, I must remind you that you can always, and should even, review what each image links to when you insert it .

On the right side of the WordPress editor's media loader, in the section called "Attachment Details", at the bottom and before the insert button (come on, that's right there so you do not forget ) You have just the section where to choose what the image will be linked to, and you should always look at this before inserting images.

 link image wordpress

Simply change the destination of the image link and it is already, regardless of the default value.

In addition, WordPress remembers your last choice, so if the last time you inserted an attachment in an entry you linked it to a URL it will be the checked option, or nothing, or to whatever it is, you remember once for another, so it's not a bad option but quite the opposite, in fact you should include this habit of reviewing what your attachments link to before inserting them into your writing routine.

That you do not always control this or there are editors on your site that " pass " from you? then we do not have another that, now, attack with the artillery and force the links by default …

Remove or change the default link to the images from WordPress without code or plugins

Maybe you did not even remember, and that I remind you from time to time but in the WordPress administration there is a hidden settings page where you can change all the settings of your site, both the ones you see in other settings pages like many others that are not normally available to view.

Just go to the hidden administration page, located at tusitio.com/wp-admin/options.php and you will see a huge list of possible configurations, actually all the possible ones in your site, but in the rough.

For the case that concerns us today, look for image_default_link_type and you will see a text box where default will show "file", the you default to WordPress, which means that your images link by default to the multimedia file, to the full image.

 change link default image wordpress settings

You can change the default behavior of the links to the images right there, with these options:

  • file: link to the multimedia file, to the complete image.
  • post: link to the entry where the inserted image is.
  • ] attachment: link to the attachment page that WordPress creates.
  • none (or leave it empty): so that by default the images do not link to anything.

Easy huh? And without installing anything or touching a line of code, all there, in your WordPress although a little hidden.

Beware! Since you are on the hidden settings page, you will be curious. You will see things that you recognize and others that do not, do not even touch anything that you do not know exactly what it is or you will load something, okay?

Remove or change the default link to the images with code

If you do not you're afraid of the code, or even like it, you can add these simple lines to your utility plugin or to the file functions.php of the active topic:

In the example you will see that the decision is that you do not link to anything But you can change the value 'none' by your favorite choice (post, attachment, file)

Remove or change the default link to the images with plugins

Of course, you can always use some plugin but this time I assure you that it is not by far the best option, which will always be the first, lighter and painless.

But if you are a total fan of plugins you can use one of these to get it: [19659018] Default Image Link : Simple, you choose your favorite option and it works.

  • No Image Link : It changes the default option to not link to anything, it is activated and ready
  • Yoast SEO : It's not the same, it's a variation of what we're talking about, but Yoast's SEO plugin has an option on the settings page Advanced -> Permanent links or permalinks where you can specify which attachment pages you create r WordPress the images link to the entry to which they belong, much better for the internal SEO.
  •  redirect file link in yoast

    So what is the best way to link the images?

    ] As a final note, since I am asked a lot, in my opinion I think the best thing is that you do not link the images to anything or failing to the input (the option post ]). With this you avoid the hotlinking to a large extent and by the way the search engines will point to your content when they take you traffic.

    Oh, and do not fear, if you dare with these changes, do not take away or change the links of the images that you already had inserted in your entries, simply mark the default behavior for when you are going to insert the following ones.

    Likewise, you can always refer to the first option, zero, to link your images to the What do you want?


    Do you have any doubts? Do you know any other trick? Do you want to say something? Tell us in the comments

    NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

    Loading …

    That may also help you:

    Custom links in the galleries

    If you have ever used galleries in WordPress you know that they are created with thumbnails of the selected images, that you can link to the attachment, to the original file or without a link, that shows only the thumbnails as such. [19659004] If you have ever used WordPress galleries, you would have liked to do something like that, right?

    You just have to install the WP Gallery Custom Links plugin which, as its name suggests, allows link gallery files to the custom link you want to an external URL, to an entry in your site, wherever you like.

    Its use is also very simple. You only have to activate the plugin and from that moment, when you create a gallery you can, in addition to the usual options, link each image to a custom URL, and you can also define if the link will open in a new window or even if you want to maintain effects as Lightbox that you have active (because by default you deactivate them for personalized links).

    The result ?, perfect.

    Modify WordPress thumbnails

    The miniatures, or outstanding images how the WordPress editor calls them, are a very nice functionality, let alone the ability of WordPress to generate them.

    But they have a problem, and that is that automatic generation is always the same: from the center to the outside cutting up, down and to the sides of the center of the image.

    Thus, if the main motive of a large image is not right in the center of it the miniature will not do it justice and you will see (it happens a lot) just a flat color, clouds or whatever you catch in the middle of the image.

    Well, if you want to control which part of an image it will show how nothing miniature how to include an editor of them, and Post thumbnail editor it is.

    In the end, what it offers is total control of the thumbnails, which will show what you want, not what the automatic clipping has created.
     before then [19659007]</pre>
	</div><!-- .entry-content -->

	<footer class= Posted on Categories imagenes, miniaturas, Plugins, Principiante, WordPress.orgLeave a comment on Modify WordPress thumbnails

    How to add featured images by category • WordPress Help

    The featured images are a very interesting feature of WordPress since version 2.9, but we have not always been fine, or we have many entries without defining a prominent image, or we just do not want to put a different one each time .

    For all these occasions there is the possibility to define outstanding images " by default ", without interaction by the user, and that the theme we use always shows something.

    And a special case , is if we want to define an outstanding image by default depending on the category of the entry. That, incidentally, is a really interesting and useful possibility that I did not cover in the article how to add thumbnails by default in all entries .

    Default thumbnail plus en a very complete plugin while simple, with the particularity that you can define images by default for each category, which is an important "plus".

    It is a plugin widely used especially in technology portals, to identify topics in cover, depending on the category, that its main virtue.

    And already, if you know someone else tell us and add it.

    I hate the WordPress flash boot

    Yes, I admit it, I hate the WordPress flash charger, never a functionality of this dear CMS our caused me so much bad milk daily. What's more, I miss the old old imager, which did not put a window between you and the editor.

     upload old wordpress images "title =" upload old wordpress images "width =" 446 "height =" 370 " class = "size-full wp-image-10468" /> 

<p class= That's how nice the old imager was

    And I do not hate it because it works badly, that it does not, but because there are tasks that, being simple , instead of doing it quickly it slows them down, I mean …

    When we used the old imager this did not open any windows on our editor so, if we saved the limitation of uploading only one image at a time, with a plugin like Multiple upload it was a joy to insert images in your text, because it was not like it's worth now, you upload a lot of images at once but then you insert a and … reopen the loader, click on Gallery, click on Show (the image qu you will insert it in second place), and click on Insert in the entry. Come on, many clicks for something we already had and that, in my view, has not improved as a whole, only in the ability to load images in batch.

    What do I say if it would not be possible to have again the image loader in an editor widget and thus facilitate the thing, and incidentally it would be lighter, without so much AJAX yes, very modern but it is slower than a traditional charger.

    Come on , I do not know what you'll think, but I remember the mother who gave birth to the flash charger every time I have to insert more than one image in an entry, does not it happen to you?

    NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

    Loading …

    That may also help you:

    improving image management

    If you do not know WP Smart Image II I'm sure you're missing out, not just a great plugin created by Darío Ferrer but many of the possibilities that WordPress offers for the adequate management of images, since it is integrated and greatly improves the functionality of inserting images in your site taking advantage of internal functions and vitaminizando its possibilities.

    The first version of the plugin was a wonder, but when Darío reviewed his previous work he decided to completely revamp the plugin and create WP Smart Image II making it his raison d'être: an essential resource for the web designer but not only for the designer but for anyone who habitually uses images on their site created with WordPress.

    It is important that you know that WP Smart Image II comes to be a replacement for the function ' post_thumbnail ', but not only replaces it but improves it. In this entry you have the full list of functionalities in front of the native WordPress function.

    So committed is Darío with the project that until has created a Wiki in which to document – even beyond the reasonable – the use and motives of WP Smart Image II, another reason why it is worthwhile to support this project, from a Hispanic developer, from a friend, from a community partner that helps WordPress to get better every day, do not you think?

    And you may wonder how to help this project? because the best way is to use the plugin in your sites, try it, inform Darío of any failure you find or improve that you can think of, you can also help in the development, downloading the latest versions in your own Trac .

    If you are not yet convinced of what it contributes WP Smart Image II here you have its virtues …

    Web development

    • Choose the output type of the function: echo or return.
    • Add custom classes and IDs to the images, in order to process them appropriately using CSS, javascript, PHP and other resources ..
    • Get the URL of the image instead of the full tag.
    • Add and define attributes to the links, such as "rel", "class", "id" and "target". [19659010] Separate the data of the images into pieces and show them individually (Height, width, file type, ID, etc.).
    • You can start the plugin in PHP Mode, saving you a few queries for common tasks of the system

    Blogging

    • Choose the image to display through a friendly box in your text editor
    • Show thumbnails in RSS feeds.
    • Customize sizes in RSS feeds.
    • Assign titles to the images directly from the box of your editor.
    • Choose any an image of your multimedia library and assign it to the article, even if the image is not linked to it.

    Design and layout

    • Add attributes " width " and " height "Using CSS or HTML methods.
    • Customize the attributes" alt "and" title "of the images in case they do not have them.
    • Choose among all The default types of WordPress sizes available: Thumbnail, Medium, Large, and Full. Additionally you can create new default sizes with the Max Image Size Control plugin and manipulate them easily with WP Smart Image II
    • Configure and display default images if the entry does not have one. You can also choose not to use default images.
    • Link the image to the full article or version of the image (from any size), or leave it unlinked.
    • Add a link to the Full version of the image from the Miniature size or any size
    • Show random images for each entry (instead of just one).
    • Adapt the type of label to the DTD of your site for a correct W3C validation.

    Do you still have doubts? to give an opportunity to what may be the future in the management of images in WordPress ?. Then do not say I have not warned you.

    NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

    Loading …

    That may also help you:

    How not to show images of an entry • WordPress Help

    If for some reason you want not to display the images of an entry for example on the cover of your site, there is a fantastic code that will show the content but without images . If you use extracts in the ' loop ' they will not normally be shown on the cover but what if you use the full content?

    You just have to replace the "call" to the content in the ' loop 'for this one:

    If you look, substitute the codes that exist between labels' ' for the content of the post.