Yo-ho-ho!

Development and support of web services of any scale and functionality, arrr!

11

July 2018

2

Programmatically adding a thumbnail to a record

In order to add entries from the pages of our site, there is the function insert_post, but it does not have the ability to attach files to a record or to set a thumbnail. To solve this problem, consider an example …

Read more

11

July 2018

2

Output of scheduled records

Entries that have the status “Scheduled” are not displayed on the pages of your site, but there are times when it is necessary. For example, to create a calendar on your site – our little hack for solving the problem …

Read more

10

July 2018

2

Arbitrary view of the arbitrary menu

Today we are talking about such a powerful tool as an arbitrary menu. This function has appeared since version 3.0. Enabling support for arbitrary menus in your theme is very simple, you need to add the following lines to the function.php file …

Read more

10

July 2018

2

Protect WordPress

In this article, we’ll look at real measures to protect your Wordpress site from hacking. Editing wp-config.php and .htaccess.

Read more

10

July 2018

2

Hacked a site on WordPress?

Eliminate the consequences of hacking, remove viruses and do preventive maintenance.

Read more

10

July 2018

2

Custom Shortcodes

Shortcodes in Wordpress thing is very convenient: we can call the functions we need anywhere in the page or record…

Read more

10

July 2018

2

Correct robots.txt for WordPress

For correct indexing of a site, it is necessary to use a file robots.txt .

Read more

10

July 2018

2

Remove excess from wp_head()

We remove the non-mandatory code from wp_head() in order to optimize and secure the site…

Read more

10

July 2018

2

New fields for editing a record

We learn how to add new fields for editing in Wordpress, using the wonderful add_meta_box() function.

Read more

10

July 2018

2

The way to a thumbnail recording

Starting with version 2.9, Wordpress has its own tool for creating thumbnails , but not very convenient.

Read more

10

July 2018

2

Backlighting the current heading

The code below shows everything, anything, and can be added anywhere in the template, with the highlight of the current heading.

Read more

10

July 2018

2

Child Header ID

Function of output of child headings, according to the slug (link to the heading) of their parent.

Read more