Connecting WordPress thumbnails, setting them up and using them.

We'll talk about wordpress thumbnails. Or, as they can also be called, image previews. In this article, you can find out what a WordPress thumbnail is, how to connect it to your theme if it is not connected, how to configure its display, and also in what cases it can be used on your site?

And so as not to delay, we will immediately begin to analyze all the questions listed above.

What is a WordPress thumbnail and where can I use it?

A WordPress thumbnail is a smaller copy of an image on a website used for administration. wordpress engine, otherwise it can be called a preview image or a mini picture.

It can be used, as in article announcements, instead of standard images, and in other areas of the site, for example, when using popular or similar WordPress posts with a picture. Also, there are plugins that can use image previews to display various information. In addition, a mini picture can be added to rss feed our website, for a more attractive appearance of article announcements. In general, the scope of miniatures is quite wide, and questions related to this type of image often arise.

For example, very often questions arise related to the fact that some plugin or information display code uses thumbnails, but they do not appear on the site, which is why appearance absolutely not what you expected. In this case, you need to check the support of thumbnails in our theme, and if it is missing, enable it.

Checking WordPress theme support for thumbnails.

So, if we are not sure about the connection of thumbnails in the theme, this can be easily checked. To do this, you need to go to WordPress admin and go to the editor of any of the entries, or select the “add new” entry.

If WordPress thumbnails are connected, then in the right column we will see a window called “Post Thumbnail”, with a link to “Set Thumbnail”.

If we don’t see this window, we should check that there is no option to add a thumbnail in the screen settings. For this, in the right top corner, you need to click on the “Screen Settings” tab. And check that the “Post Thumbnail” item is missing.

If this item is present, you just need to check the box next to the item and then a window will appear where we can set the article thumbnail. If, however, of this paragraph no, then we need to enable thumbnail support in our template.

And please note that due to the nature of translation of topics, this option may have a different name, such as “Feature Image,” and the link to create a thumbnail may be “Set Feature Image.”

Connecting a WordPress thumbnail and displaying it in the article announcement.

To connect WordPress thumbnails to our theme, you need to open the functions.php file in the admin panel, or using the NotePad++ text editor and at the very bottom, before?>, add the following code:

Add_theme_support("post-thumbnails");

After that, in the post editor we will have the opportunity to set a thumbnail. And if we don’t have very many articles, then we can set, for each, wordpress thumbnail by hand.

Now how can I use it in an article announcement? To display a thumbnail home page, you need to write the code in the index.php or loop.php file:

If you are having trouble finding the right place, then just find this code:

Or like this:

And before it, insert the code for displaying the WordPress thumbnail.

After these steps and assigning a mini image in the editor wordpress posts, small copies of the images will appear on the main page. Plus, we can make this image a link to the continuation of the article. To do this, let's replace standard code, to this one:

" title="!}">

A little more detail about what this code consists of:

  • 1. opening tag , and closing— a tag intended for creating links. It is he who will make the thumbnail a link.
  • 2.href="" - link to the article.
  • 3. title="" — тайтл (заголовок) ссылки, который будет виден, при наведении на нее курсора. Берется из заголовка статьи.!}
  • 4. — mini-image output function.

Now it should be a little clearer how this works. All we have to do is design the appearance of the picture, depending on our needs. To do this, you need to add the following code to style.css if it is not there:

Img.wp-post-image(thumbnail styles here)

And between the brackets, instead of “here are the thumbnail styles,” add the necessary styles. This applies to normal, standard output, without using any parameters.

WordPress Thumbnail Options.

But this function has additional parameters for more flexible settings. Of course, we will not consider all the parameters, but will only touch upon the assignment of sizes for mini pictures, since this may be needed when adjusting the appearance of the images. And when assigning parameters to the thumbnail display function, we will be able to change the sizes from the admin panel, which is more convenient than going into the code and editing it every time.

By default, we can use the following options for images:

The_post_thumbnail(); // standard output, without parameters, which we talked about above. the_post_thumbnail("thumbnail"); // a smaller copy of the image (default 150px x 150px). It is possible to configure from the admin panel, but the size should not exceed 150px the_post_thumbnail("medium"); // medium size (default 300px x 300px). Ability to configure from the admin panel. the_post_thumbnail("large"); // large size (default 640px x 640px). Ability to configure from the admin panel. the_post_thumbnail("full"); // full size (original image size). the_post_thumbnail(array(100,100)); // your sizes. It is possible to assign any width and height dimensions.

To use one of the options, it is enough to replace the standard code (without parameters) with any of the proposed ones.

And accordingly, for each parameter, there are selectors for the css style file.

Img.wp-post-image img.attachment-thumbnail img.attachment-medium img.attachment-large img.attachment-full

The choice of the direct selector depends on the choice of parameters for the thumbnail.

Automatically assign a WordPress thumbnail and display it in the article announcement.

But what if the site has a fairly impressive list of content and setting the thumbnail manually will be quite problematic. To do this, we can use another function that will automatically create a mini-image from the first image of the article. To do this, in the functions.php file, after ?> add the function:

/i", $post->post_content, $matches); $first_img = $matches; return $first_img; ) ?>

Now, to display a thumbnail in the announcement of the article, that is, on the main page, open the index.php or loop.php file and add the code with the function for displaying the thumbnail (the function from the previous example can be removed) in the same place as with standard output:

"src="" alt="" width="150" /> !}

Now, let's take a little look at what this code consists of.

  • 1. Tag — in fact, it is this tag that will display the image, since the function itself only pulls out the link to the first image from the post.
  • 2. title="" — тайтл (заголовок) изображения, который можно увидеть при наведении курсора на миниатюру записи wordpress.!}
  • 3.src="" - a link to the image that will be displayed. As you can see, this is where the function is located, which is responsible for the link to the mini image.
  • 4. alt="" — альтернативный текст изображения. В случаях, когда в браузере отключена загрузка изображений, будет появляться alt, как бы описывая, что здесь должно быть за изображение.!}
  • 5. width="150" — sets the width of the thumbnail. In this case, the image will be reduced in direct proportion, focusing on the specified width.

It is quite possible that when you insert this code, two images will appear on the main page for each announcement. The result of this error might be to use the standard output of the announcement:

And for this error to disappear, just replace it with:

After this, this problem should disappear.

The last thing we can do today is to make the WordPress thumbnail a link. To do this, simply wrap the code with the tag with a link to the article:

" >"src="" alt="" width="150" /> !}

Regarding the use of WordPress thumbnails in the article announcement, that’s basically it. But we may also need to design the appearance of the picture using the style.css file. Some people may have trouble deciding which selectors to use for styling.

To design a mini image displayed using this method, you can simply add a class for the tag . For example, for the code to look like this:

" >"src="" alt="" width="150" /> !}

Img.mini(miniature styles here)

That's it. Now you can connect support for thumbnails to your template and use them to display article announcements. And also, design WordPress thumbnails as you wish.

The most important! Before any editing of the code, be sure to do so that you always have the opportunity to restore it.

That's all I have. Good luck!

Continuing the topic of WordPress thumbnails, I want to look at a very useful plugin that can greatly facilitate work in some situations. Imagine that you have been blogging for several years, say, you started somewhere in 2009, and now you want to modernize the appearance (template) by adding modern options to the site, for example, the same ones. Considering that support for thumbnails in WordPress was introduced much later, your pictures, apparently, are located inside the article directly in the text.

It turns out that you have 2 options for solving the problem - use it or manually create thumbnails for each article. In the first case, there is a feeling of a “forced” and not entirely optimal solution, the second may even force you to spend 4-5 hours fiddling with pictures. Fortunately, I recently found a third option - Auto Post Thumbnail plugin.

This module allows you to generate thumbnails from the first image in the text for any blog posts or custom post types. If the first image is not found, the plugin will automatically continue searching until a thumbnail is created. In the event that thumbnails is already set for recording, simply nothing will happen. In short, the principle of operation is extremely simple and logical. By the way, if for some reason you want to prohibit the formation of a thumbnail for a particular post, then create a custom field (custom field) skip_post_thumb in the corresponding post.

Installing the plugin is simple and is done as a whole: the classic method by downloading the module files from the official website, unpacking it and uploading it to FTP in the /wp-content/plugins/ directory, followed by activation in the “Plugins” section from the admin panel; or in the “Add plugin” menu item, look for a module called “Auto Post Thumbnail”, where you download and activate it. That's it!

After installation, you will have a new menu item - Auto Post Thumbnail, where there is only one button to get started - Generate Thumbnails. There is also a note that I mentioned above - before launching, they ask you to set custom skip_post_thumb fields for posts where you do not want to generate anything. If there are none, just click on the button.

You will be informed about the progress of processing all blog posts using a special status bar. Once processing is complete, you will see a corresponding notification. Similar auto-generation of thumbnails is carried out when changing, but Regenerate Thumbnails are used for these purposes.

You can go through the posts to make sure that this plugin works correctly. I also advise you to check the appearance of the blog and how correctly the posts are displayed. There is a possibility that for the selected WordPress template, you have added thumbnail display in your code by default. As a result, you will get something like this (when both the image from the post and the thumbnail are displayed):

The first thing you might think about is that you need to remove pictures from posts. But don’t rush to do this, otherwise you end up with extra work again - you could initially not launch the plugin, but go through all the blog articles manually, changing the image to a thumbnail. In order to correct these errors, we will simply make some changes to the template.

First, open the files that are responsible for displaying the list of blog posts - index.php, home.php or archive.php, catagory.php, tag.php, where we find the text display function the_content(I mentioned it in the post about) and change it to:

This code will display a short announcement of a blog post without highlighting or images, in text form only. Further in the template file for displaying the full text of the note (single.php), on the contrary, we find the the_post_thumbnail thumbnail function and delete it. Typically, it is output with the following code:

"alignleft post_thumbnail" ) ) ; ) ?>

"alignleft post_thumbnail")); ) ?>

As a result, it should turn out that all pages with news lists will display thumbnails + short text, and full posts will display all the design and images that you specify in the editor. The solution, I think, is quite flexible, and the Auto Post Thumbnail plugin works great! By the way, if you buy websites and sometimes have to remake obvious GS into more or less beautiful projects, this module will definitely come in handy - I can say from personal experience. Although, in principle, there is another option for solving the problem - but there is more code and you need to navigate it better.

About the WordPress Thumbnail Plugin

After activation, the plugin does nothing; in order for it to start working, you will need to edit the template (call functions in the place where image thumbnails are needed). If you just install and activate the plugin, it won't do anything!

In general, the script is very similar to timthumb.php, but it is different and better in some ways:

    There is no need to manually create a custom field with a link to the image. The field is created automatically.

    It works a little faster than timthumb.php - I did everything to make the script work as quickly as possible, no checks unless absolutely necessary, the cache helps with all this;

    The cache is cleared manually. In timthumb.php, the cache is constantly checked and old files are deleted. Resources are spent on verification (a small thing, but still). You can save money on this;

    Resizing can be used directly in the post by indicating the class mini and the required dimensions to the image;

    It is much more convenient to use when integrated into a WordPress theme: you do not need to get the value of a custom field, check whether the field exists in order to display a placeholder image. All this will be done automatically.

  1. There are a lot of hacker attacks on timthumb.php.

How Kama Thumbnail works

Creates a cache folder: wp-content/cache/thumb. All miniatures will be created in it.

Thumbnails are created whenever one of the plugin functions is called to create a thumbnail - there are 3 of them: kama_thumb_src() , kama_thumb_img() , kama_thumb_a_img() . You can pass the size of the thumbnail and the URL of the image from which you want to make a thumbnail into the function. You don't have to pass the URL of the picture, then the function will search for the picture for the current post.

How does the plugin find an image for the current post? When publishing or updating a post, the plugin looks for a link to the original image and writes it into a custom field of the post, then a thumbnail is created in the topic using this link. The link is determined in the following order:

    If the post has a WordPress thumbnail, its link will be taken;

    If a post does not have a WP thumbnail or an image in the text, then the plugin will check if the post has an image (attachment) loaded for it. If there is an attachment, then the link will be taken from there;

  1. If nothing is found, a stub entry will be added to a custom field: “no_photo”. This is necessary so as not to perform these operations to search for a link every time.

When uninstalled, the plugin deletes everything: custom fields, options in the database, image cache, cache folder.

Usage (parameters)

After installing the plugin in the template, you can use the following functions:

// returns the URL of the created thumbnail echo kama_thumb_src($args, $src); // returns the finished image (img tag) echo kama_thumb_img($args, $src); // returns an image link. The link leads to the original image. echo kama_thumb_a_img($args, $src); // gets the width or height of the image. Or any property of a class instance // that creates a picture. Usually only width or height can be useful there... // the function is needed when a thumbnail is created without a previously known width or height... echo kama_thumb($optname); // Example: echo " "; // but in this case it is better to use the ready-made kama_thumb_img(), it takes all this into account... $args (string/array)

Arguments for which to create a miniature. All possible parameters:

$src (line)

In this case, the plugin will not try to get the link from the post, but will process the image specified here.

You can specify a number, then the plugin will consider that the ID of the attachment is specified - a WordPress media file and will itself receive the URL of this media file and process it...

Default: ""

If the parameter is passed as an array, then the second argument $src can be passed in this array, under the key: src , url , link or img:

Echo kama_thumb_img(array("src" => "http://yousite.com/IMAGE_URL.jpg", "w" => 150, "h" => 100,));

Notes

Parameters can be specified as a string or an array
// line kama_thumb_img("w=200 &h=100 &alt=picture name &class=aligncenter", "link to an arbitrary picture"); // "link to an arbitrary picture" must be specified as the second argument of the function. Because the link may have its own request parameters so that they do not mix with the specified ones. // or an array (recommended) kama_thumb_img([ "width" => 200, "height" => 150, "class" => "alignleft", "src" => "", ]);
You can only specify width or height

Then the opposite side (height or width) will be selected in proportion to the reduced copy;

src parameter

Needed for cases when you need to create a thumbnail for any picture.

If parameters are passed as a string, then src must be specified in the second argument of the function.

Clearing cache

In the plugin settings there are 2 buttons for clearing the cache: “entire cache” and “stub cache”. This is needed for cases when, for some reason, the plugin was unable to create a thumbnail by URL. In this case, a stub is created for the image so as not to try to create the image every time it is called. When clearing the stub cache, only the stubs are deleted and for all stubs, the plugin tries to create the thumbnails again.

Therefore, if you suddenly see that the plugin did not create thumbnails for some pictures, then try clearing the stub cache.

Images from other domains

By default, you can only create images from the current domain or subdomains.

To be able to create images from external domains, specify the names of allowed domains in the plugin settings: Settings - Media files or in the allow parameter when calling the function.

If you specify any instead of the name of the domain(s), then the creation of images from any domains will be allowed.

Thumbnail in the article text (shortcode)

If an article needs to make a picture smaller and make it a link to the original, then give the picture a class mini and set the required dimensions (width or height).

For example, we inserted a picture into the article:

But such a big one is not needed, but it needs to be reduced not visually, but actually. To do this, add the mini class to it and indicate the required dimensions (width="300"):

The height that we removed will be selected automatically, proportionally.

This approach - not using a shortcode - seemed more convenient to me: we can create thumbnails for pictures and at the same time see how the picture looks when editing a post, and even if the plugin is possibly removed, the pictures in the posts will still be shown (there will be no unclear shortcode left).

For a thumbnail image to be created, this option must be enabled in the Kama Thumbnail settings: Settings > Media.

Checking required plugin installation

If you use this plugin, then most likely the theme will no longer work without it. Therefore, it would be good to make a check with a warning to the user, if he disables the plugin, that the plugin is required and must be enabled for the theme to work correctly.

To do this, place this code in your theme's functions.php file.

// required kama thumbnail plugin for the theme if(! is_admin() && ! function_exists("kama_thumb_img"))( wp_die("Activate the required Kama Thumbnail plugin for the theme"); )

Now, if the plugin is deactivated, the user will see a message in the front end: “Activate the required Kama Thumbnail plugin for the theme.”

Function speed (measurements)

The first processing of an image takes a long time and the speed depends on the size of the image. The rest of the processing is much faster, because it is taken from the cache...

The measurements were taken on a 32KB image (650x350), from which a 100x100 miniature was created.

  • kama_thumb_src() - 1 time = 0.01403, 50,000 times = 0.54830 sec. (very fast)
  • kama_thumb_img() - 1 time = 0.01471, 50,000 times = 1.38748 sec. (fast)
  • kama_thumb_a_img() - 1 time = 0.01471, 50,000 times = 1.72967 sec. (fast)

When working with the cache, and this is 99% of the plugin’s work, it makes no difference what size the image is...

Messages about the need to install this plugin

Let's say your theme or plugin uses this plugin and requires it to be installed to work correctly. So, if the plugin is not installed, the theme may not work at all, because it will use a function that simply does not exist in PHP. Let's catch such a moment and display a PHP NOTICE level error:

If(! function_exists("kama_thumb_src"))( add_action("admin_notices", function())( echo "

". __("This theme requires plugin Kama Thumbnail. Install it please.", "dom") ."

"; )); function kama_thumb_src()() function kama_thumb_img()() function kama_thumb_a_img()() function kama_thumb()() )

Examples

#1 Getting a miniature

Inside the WordPress loop, where we need a thumbnail for a post with dimensions of 150x100, we use the following code:

As a result, a ready-made tag will appear in place of this code :

#1.2 Reducing the image only on the specified side

To get an uncropped, proportionally reduced picture on the specified side: width or height, you need to specify only the width or height, then the opposite side will be selected proportionally. There will be no framing.

Kama_thumb_img("w=200");

Now the width will always be 200, and whatever the height will be... In this case, the picture will always be full, without cropping.

#2 Do not display a placeholder image

To prevent a stub image from being displayed if the entry has no images, you need to define the no_stub parameter:

#3 Checking the presence of a picture for recording

If you need to check whether a post has a picture and if not, then do something else, then use this code:

$img = kama_thumb_img("w=150 &h=150 &no_stub"); if(! $img) echo "No picture";

#4 We only get the thumbnail URL

If you do not need to display a ready-made img tag, but only need to get a link to the thumbnail to then use it, use the kama_thumb_src() function:

Returns the thumbnail URL: /wp-content/cache/thumb/ec799941f_100x80.png . This URL can be used, for example, like this:

"alt="" />

#5 Get a thumbnail link to the original

If you need to make a miniature like a picture, clicking on which will open a larger image, then use the following code:

#6 Get a thumbnail from a link to an image

If you need to create a thumbnail for a specific picture (not the picture from the text of the article), then you can pass the second argument to the function, which contains a link to the picture.

$src = "http://domain/image.jpg"; echo kama_thumb_img("w=150 &h=100 &class=alignleft", $src);

#7 Post_id parameter

By default, thumbnails are created for the current post, the one that is stored in the $post global variable. Sometimes this variable is defined incorrectly and other images may be created, related to a different post. To determine exactly which post a thumbnail should be created for, define the post_id . If the call occurs in a WordPress Loop, then this parameter does not need to be specified!

#8 Images from other domains: the allow parameter

If in the plugin settings, in the allowed hosts, the required host is not set and the any line is not set (allow all domains). Then the allowed domains can be specified in the allow parameter:

Let's say our domain is site.ru, and we need to create an image from the site "http://static.othersite.ru/img.jpg".

// you can specify exactly echo kama_thumb_img("w=200 &h=150 &allow=othersite.ru", "http://static.othersite.ru/img.jpg"); // or you can specify it for everyone, so that you can create from any site echo kama_thumb_img("w=200 &h=150 &allow=any", "http://other-site.ru/img.jpg"); // you can definitely specify several domains separated by commas echo kama_thumb_img("w=200 &h=150 &allow=othersite.ru, foo.com", "http://foo.com/img.jpg");

Use not as a plugin (integration into the theme)

If you are developing a theme and need the functionality of this plugin, but do not need to install the plugin. Then this plugin can be used not as a plugin, but as part of a theme or as a mustuse plugin.

To do this, you need to copy the plugin folder (with all files) to the theme folder and include the main plugin file kama_thumbnail.php in the functions.php file. This is all!

For example, the theme has an includes folder and we copied the plugin folder into it, then the main file needs to be included like this:

Require_once "includes/kama-thumbnail/kama_thumbnail.php";

Disabling the Options Page

If the options page is not needed (you are making a website for a client). Then you can turn it off. To do this, you need to register the necessary options through the kama_thumb_def_options filter. You can do this in the theme's functions.php file or anywhere else:

// Overrides the Kama Thumbnail plugin settings // Automatically disables the options page in the admin and the use of options. add_filter("kama_thumb_def_options", function($opts)( /* original, see plugin code "meta_key" => "photo_URL", // name of the meta field of the post. "cache_folder" => "", // full path to the folder thumbnails. "cache_folder_url" => "", // URL to the thumbnails folder. "no_photo_url" => "", // URL to the stub. "use_in_content" => "mini", // whether to look for the mini class in images in the text. to change their size. "no_stub" => false, // do not display the stub image. "auto_clear" => false, // whether to clear the cache every X days. "auto_clear_days" => 7, // clear it every number of days. cache. "rise_small" => true, // increase the created thumbnail (width/height) if its size is less than the specified size. "quality" => 90, // quality of the created thumbnails. "allow_hosts" => "", // available hosts, except the native one, separated by commas. "any" - any hosts. "debug" => 0, // debug mode (for developers) */ $opts["cache_folder"] = get_template_directory() . ; $opts["cache_folder_url"] = get_template_directory_uri() ./cache"; $opts["no_stub"] = true; $opts["auto_clear"] = true; return $opts; ));

Condition of use is mention of this plugin or this page in the theme description.

Hi all! A week has already passed since we left St. Petersburg and settled in the village of Hikkaduwa in Sri Lanka. A little more about this at the end of the post.

Today you will learn how to create, add and edit thumbnails for posts in WordPress. Let's figure out why they are needed, as well as how you can add previews to your blog automatically.

How to use thumbnails on a WordPress blog?

Thumbnail images in WordPress are most often used in blog post announcements. Announcements are displayed on the main page or in sections. As a rule, an announcement illustration is a smaller copy of the picture in the article itself. Also, these previews will appear during output similar posts below the article, if your theme provides such an option, or you have the appropriate plugin installed. This is also true for the latest and popular posts in the sidebar, if you have them.

It is very important that in each place where thumbnails are displayed, they are compressed to the size in which we see them on the site. Of course, it would be possible to display full-size images and simply set them to small sizes using CSS styles. But then the browser will have to load a lot of large, heavy images each time, which will make the site load very slowly. Fortunately, it is possible to automatically compress images to the desired size.

Now let's move on to how to display thumbnails on a WordPress blog and their settings.

Displaying a preview of a post in WordPress

To check if your WordPress template supports thumbnail display, you need to go to the post or page editor. If supported, you should see the following:

I have this option in the lower right corner on the edit page.

Now, to create a preview for the article, click “Set Thumbnail”.

You can select already downloaded pictures from the file library, or upload a new one. Since the thumbnail is set after the article is written and formatted, most likely the required photo will be in the library. All you have to do is select it, and then, depending on your template, a preview of the size you need will be generated.

If for some reason you are not satisfied with the size or style of the picture, you can go to the photo editor and set the necessary parameters manually.

You can set thumbnail sizes for posts in WordPress in the admin panel: “Settings” - “Media files”:

What to do if thumbnail display is not provided in your theme, but you need them?

To do this, you can use the following function in your theme's functions.php file:

add_theme_support('post-thumbnails'); ?>

Auto thumbnails in WordPress using a plugin

It's good if you properly added thumbnails to each post while creating them. But what if you already have a lot of posts on your blog without previews? Or how to change the size of all thumbnails in WordPress after changing the blog design? Re-opening each entry and editing it is too labor-intensive.

Fortunately, to make our lives easier, plugins have been created to automatically generate thumbnails for posts in WordPress.

In order to find a suitable plugin, enter thumbnails (from English - thumbnails) in the search bar.

Thus, we will find the most relevant and popular plugins for our task.

One of the commonly used and simple plugins to resize all thumbnails in WordPress is Regenerate Thumbnails:

After installation, go to “Tools” - “Regen.Thumbnails”:

In the window that appears, click the “Regenerate All Thumbnails” button if you want to adjust all thumbnails to the size specified in the blog settings.

We wait until the process finishes:

One of the simplest plugins for inserting auto thumbnails into all posts on WordPress is Easy Add Thumbnail.

It automatically creates a thumbnail based on the first image in the post. To do this, you just need to activate it; you don’t need to configure anything.

Another plugin for creating thumbnails for posts in WordPress is Generate Post Thumbnails. It allows you to set the number of the picture in the post that will be used to generate the preview.

As you can see, displaying thumbnails in WordPress and even generating them automatically is very simple.

P.S. Hikkaduwa is a wonderful tourist destination on the southeast coast of Sri Lanka. We like it here: lush lush vegetation, clear raging ocean with huge waves, lots of coconuts and other fruits, friendly locals. We rent a house for 45,000 rupees (21,000 rubles). The rainy season is now ending and the weather should be beautiful for the next few months! Come visit :)