UK Sales: 0800 035 6364 | | We'll Call You

How to exclude a photo from a gallery post


A gallery will display a set of thumbnail images attached to a particular post or page. But what if you want to display an image separately in the post, but not in the gallery? Here's an example:
The problem is that Wordpress will automatically put any image that you insert in your post into the gallery as well.


The solution? Use the gallery shortcode feature to exclude specific images from the gallery. Full instructions can be found here, but for specific requirement to exclude an image from the gallery, this is what you need to add:

[gallery link="file" exclude="199"]

To add this to your post or page, switch to HTML view and look for the existing [gallery] code. Then modify it as shown.


"199" refers to the image id. This can be found from the Media menu, by hovering over the picture. The browser status bar (bottom left of window) will show 'attachment_id=xxx', where xxx is the number you want.



We understand WordPress - we've installed and use dozens of WordPress websites. Many users use Wordpress because of the ease of use and the templates and plugins options it offers - UK Wordpress Hosting from is perfect for this.


Help for Wordpress
Help for Wordpress

Lost your Wordpress login?

If you know your username and the email account in your profile, you can use the "lost password" function -

If you can't use this method, here's how to do it in MySQL.
Using any MySQL admin tool, (PHPMyAdmin), run the following query, entering your own choice of password.

UPDATE wp_users SET user_pass = MD5("new-password") WHERE wp_users.user_login = "admin";

Notes: You must have access to your database. If you don't, contact our customer services team who will be able to help.

2020Media understand WordPress - we've installed and use dozens of WordPress websites. Many users use Wordpress because of the ease of use and the templates and plugins options it offers - UK Wordpress Hosting from is perfect for this.

How to move a WordPress website from one host to another


Help for WordPress
Help for WordPress

Moving a website built in WordPress is a fairly technical process and for that reason, we recommend you make a backup before you attempt the process. This article refers to self-hosted WordPress sites, not sites built on the hosted platform.
A WordPress site or blog consists of two parts working together: 1) the files inside the folder where your site is installed, and 2) a MySQL database which stores all your pages, posts, comments, and settings.




Create a full export of your WordPress database. A simple way to do this is with phpMyAdmin, it's the same process as backing up your database and is included in most hosting accounts. There's a detailed post describing how to do make a database backup on the WordPress site. You can also find some WordPress plugins that will create a full database backup/export. The WP-DB-Backup plugin does exactly that.


[Optional] If your site is changing it's domain name, then this step if necessary. If you are simply moving hosts, and keeping the same web address (domain name), then skip this step.
If the address is changing, you need to filter your database and correct all the paths, or none of your images will show up on your new site. This is because all of the paths to the images (including your site address) are stored in the database. Open the .sql database export file in a text editor with a good find/replace function and replace the old site domain name with the new one everywhere it is found. You also need to make sure that the "wpurl" and "home" options in the "options" table have the correct new domain name.


Website Files


Download all your WordPress files from your existing site, using FTP. The WordPress Codex provides an excellent tutorial on FTP, if you need any help.
On your new website location, upload all your WordPress files, using FTP.
On your new website server, create a new mySQL database and import the database export file you created (and possibly filtered) earlier. This can be done using phpMyAdmin, or any other MySQL admin tool provided by the host. Your host may also import the file for you.
Edit your wp-config.php file to make sure your new database name, user, and host info is correct. This means opening the wp-config.php on your computer using a plain text editor like Notepad. Do not use a WordProcessor as this will add extra hidden characters. Once you've changed the details, save it, and upload it by FTP.

Too Complicated?


2020Media provide FREE migrations for WordPress sites from both self-hosted WordPress websites and sites.
Just choose a hosting plan and sign up, and we'll do the rest.


Wordpress - how to add comments on Pages

Most Wordpress themes do not allow you to add commments to your 'pages' (as opposed to posts). Here's how to allow users to comment on your pages.

You need to edit the page.php file for your theme (under Appearance) and insert the following:

 <?php comments_template(); ?> 

In the default theme it slips in best just before the close of the

<div id="content" class="narrowcolumn"> 

tag on line 17 (I'm looking at theme version 1.6). However you can just use trial and error on your chosen theme.

That's all there is to it. You might also want to edit the comments.php file of same theme and add <?php if (!is_page()) { ?/> before the line that reads <!-- If comments are closed. --> and <?php } ?> after it. (It's around line 57/58, again in default theme version 1.6.) This'll stop the "Comments are closed" message from appearing on pages which to me doesn't quite fit given the context.

With thanks to 'dominicwa' from the forum

This snippet will change your WordPress login page so that you can change the logo away from WordPress, and also change the default logo link (to and title text to something of your choosing.


The following code must be added to the functions.php file of your template.

 function custom_loginpage_logo_link($url)
      // Return a url; in this case the homepage url of wordpress
      return get_bloginfo('wpurl');
 function custom_loginpage_logo_title($message)
      // Return title text for the logo to replace 'wordpress'; in this case,  the blog name.
      return get_bloginfo('name');
 function my_login_head() {
 	echo "
	 < style>          // remove the space between < and style.
 	body.login #login h1 a {
 		background: url('') no-repeat scroll center top transparent;
 		height: 95px;   // change this to match your image.
 		width: 400px;   // change this to match your image.
 	< /style>    // remove the space between < and /style.
 // Hook in
 add_action("login_head", "my_login_head");


You may need to make the functions.php file editable first, using your FTP client. If you uploaded the template from within WordPress then it should be fine.

The image URL should be a full url including http://

You can put the code anywhere in the functions.php, just make sure it is between the code goes between the php begin and end marks.

You can see an example at


This document is referenced from

More Articles...

  1. MyLinks2 WordPress Plugin
2020Media is a leading provider of small business Wi-Fi hotspots. If you want to offer free Wi-Fi to your customers or users, our service could be exactly what you are looking for. Our Hotspots are managed in the cloud, ultra-reliable and give you loads of information about behaviour patterns of your users. Read More   Read more...
2020Media introduces Moodle Hosting - UK servers and UK Moodle experts setup your site ready to use. Read more...
Special Offer for Longer Registration Periods Register or renew a .com, .net or .org domain name for 5 years we'll include 1 year free*. Read more...
2020Media is now offering zero-click installation of the popular TYPO3 content management system. Read more...

Our blog is regularly updated with news, tips and industry opinion.


  • AggieWestons
  • baker-and-mckenzie
  • arts-council-england
  • Big Finish
  • barratt-developments-logo
  • City-of-Lincoln-council-logo
  • brora-logo
  • DenisMacShane
  • Construction-Industry-Council
  • colchester