The definitive plugin to develop themes or plugins

Developer is a plugin (now I'll explain this in italic letters) developed among others by Automattic . And I say plugin because it does not have any functionality that can contribute something to our website.

Developer is a tool that recommends us what plugins we need to install to test or find faults within a topic or plugin that we are developing. Its main function is to show us a list of essential plugins to make our development faster, more reliable and more comfortable. It also allows us to install them all through a small panel based on AJAX.

Let's see what the process is:

Once the plugin is installed and activated, the following modal window appears:

Great. The plugin asks us what we are developing: plugin, theme or theme for WordPress VIP . The most usual will be the first two options.

Imagine that we are developing any topic, click on the corresponding option and then another modal window is displayed where a generous amount of development plugins is listed and also gives us the option to install them from that same window.

If we click on the installation buttons, through AJAX, Developer will download the corresponding plugins. While Developer, sometimes gives us errors, the truth is that if we look at the list of plugins, we'll see that they have been downloaded. In another case we have to download them by ourselves.

Now, in Tools -> Developer we will have available the list of plugins and those that have been installed or activated:

I will not comment all, but before discovering this plugin I knew some like:

Theme Check : It is forbidden to create a theme without having installed this plugin. It will be responsible for reviewing all the code of our subject and will tell us what functions we are using wrongly or those that are very old, as well as general information that will allow us to improve the code of our subject.

Debug Bar and Debug Cron Bar : Shows general information about executed queries and active crons.

User switching : Have you ever had to logout and login with another user to do tests with said user in situ ? Well this is over, no more login-logout.

Regenerate Thumbnails : Indispensable if we have changed the subject and the sizes of the images are different from the previous theme. It helps to regenerate all images to new dimensions. It is a must-have.

Pig Latin : If you activate this plugin you will believe that WordPress has been broken. All the words appear disordered or with inserted letters, nothing is understood. It serves to check if our subject is prepared for translation. Those words that appear correctly, means that we have not arranged them for translation. Then I recommend reading this article .

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:

Advantages and disadvantages of WordPress "child themes" • WordPress Help

A " child theme " or daughter template, is a way to create modifications of a main theme or " parent " to adapt it to our needs without needing to modify the main theme , as I explained a long time ago of child themes .

And, although everything seems to be advantages, like everything in this world, child themes have their pluses and minuses let's see them.

It may seem that child themes have more advantages than disadvantages, but if you want my opinion it is not so and personally I prefer not to use them, it seems simpler and controlled to make the modifications directly in the subject, documenting them well, and if there are updates, simply reapply them after the same.

But of course, this is my opinion, yours already tells us.

Tag drop-down list

I do not even remember the time that a reader, bored of the clouds of tags asked me how to make a drop-down list of labels not of categories which is what It is always more easily available. And the truth is that I wrote it down but until today I have not remembered to locate something to give it a solution.

And instead of a solution I bring two. Better right?

This nice code, which I found in WPlover will create a drop-down list of the labels, you decide where you want to show it, in the sidebar, at the end of each entry, yourself :

<li id = "categories" >

<? Php _e ( 'Entries in each tag' ) ; ?>

<form action = [19659000] " <? php bloginfo ( 'url' ) ; ?> /" method = "get" >

<? php

$ select = wp_dropdown_categories ( 'taxonomy = post_tag & show_option_none = Select tag & show_count = 1 & orderby = name & echo = 0' ) ;

$ select = preg_replace ( "# ] *)> # " "" $ select ) ;

echo $ select ;

?>

<entry type = "submit" ] value = "View" />

The best of this code is that as it treats the tags as what they are, one more taxonomy, you can use it to do a drop down of your own taxonomies by changing taxonomy = post_tag by yours.

if you want to make it even easier you also have a plugin that comes to be the ideal substitute for the previous code. Taxonomy dropdown widget once installed and active, add a widget to configure it to your liking and, if you prefer to show the result elsewhere you can use the function taxonomy_dropdown_widget as follows:

BbPress forums on WordPress.com?

How long have I not talked about TalkPress ? Do you remember what it was, that pretended commercial evolution of the bbPress forums ?, it seems that the bbPress VIP forums project was left in the inkwell.

And that is if we give credit to a recent tweet by John James Jacoby leading developer of bbPress and BuddyPress would soon be able to enjoy bbPress forums on WordPress.com it is not known if in the basic package or for VIP clients.

If so, what started almost half in cognac with an installation of phpBB in TalkPress.com (which now redirects to vip.wordpress.com ) would soon offer all the advantages of conversation and loyalty of forums also on WordPress.com . Hopefully so, like the possibility of having BuddyPress had not you thought ?, the same one of these days also integrate it as a module of JetPack .

Automatic watermarks in WordPress

If you regularly use original images on your website, it will not be fun to find them on other sites, or at least if they appear who made the photos or created the images .

Regardless of the systems for avoid content theft it is worth adding the ones known as " watermarks "In your images.

And much better if we do it automatically, right?

Well what you have to do is create a function which you will add to your function plugin or file fucntions.php of the active theme.

You have it just below, with a function watermark () that takes into account 3 parameters ( $ SourceFile $ WaterMarkText $ DestinationFile ) that create a watermark image from the specified source image. The first parameter – $ SourceFile – is the complete server path to the image that will serve as a watermark. The second – WaterMarkText – is the text message you want to add as a watermark. And the last parameter – $ DestinationFile – you can leave it blank or put the full path to a new file that would have both the source file and the watermark text on it.

What does this function is to read the source file, then create a new image object, using the function imagecopyresampled () . Then, using the font " arial.ttf " and the function imagettftext () write the WaterMarkText in the image. The last statement IF checks whether the file should be saved with a watermark or if it should only be displayed on the screen.

You will have than download the source file " arial.ttf " and upload it to your server. Then copy and paste the previous function in the function plugin. The next 4 lines which you also have to add to your function plugin, are used to define the source file, the text message of the watermark and the destination file. If you only want to show the image as a watermark then you leave the variable $ DestinationFile empty ( $ DestinationFile = ''; ).

Make sure that for the source file and destination you have to include the full path of the server and also the name of the file. If you change the position of the message for the watermark in your images you have to change the line imagettftext ($ image_p, $ font_size, 0, 10, 20, $ black, $ font, $ WaterMarkText); .

PHP Code seen on phpjabbers

Mola true? What? … yes, that's cool …

Vaaaaaaale, I know, you want to make it easier. Well nothing, to pull plugins . If you are wandering then try some of these plugins in case they do the fix, but do not say you have not learned to do it in "pro mode" eh!

  • Bulk watermark : it's a bit of a beast but it works, what it does is add a watermark to ALL the images that you have uploaded to your WordPress, without questions or explanations, you cheer up and do it. Very useful if you have realized late that you should add this type of protection to your images.
  • Watermark reloaded : similar to the previous one, quite configurable and effective. Its function is to add a watermark to the existing images in your WordPress.
  • Signature watermark : very nice and customizable, because you can add text and image watermarks, with a really complete options panel, it would be the ideal substitute for the code
  • Watermark my image : this adds to the possibilities of the former the virtues of the first one, since besides adding watermarks to the new images it also offers you the possibility to add it to all the images that already you had previously uploaded to your WordPress. Less configurable than Signature but more complete.

Ea, that's it, you mark it well!

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:

Featured image when sharing WordPress entries on Facebook • WordPress Help

This trick comes to solve a quite common problem, and it is the unattractive aspect of the publications when your readers share it on Facebook because many times it comes out as the default image any one of the sidebar, one of the entry that does not adequately illustrate the content or even the header image of your WordPress.

Because, if you define a featured image in WordPress for each entry, and you choose it to be the graphic reference that defines your publication, would not it be the most logical that it be the one that illustrates your publication when people share it on Facebook? Well, that's what it's about.

The solution is to add the following code to the file header.php of your active topic, before the tag wp_head () if possible ( come on, yes):

Save the changes and you'll be free of unexpected surprises.