9 short but useful WordPress codes

Text change code read more ..

Paste the following code into the file function.php. Checked everything and everything works fine. Maybe not everything is so beautiful, but the codes work.

Inserting a search string anywhere in the template. I also checked everything.

Adding Current User Avatar to WordPress Template

An example of what happens:

Counting the number of PDF files, in the WordPress media library

You can use the short function to insert quantities into your site:

Title change

Changing the default text in the admin panel. When entering a title.

 

Adding a Gravatar Instead of a Favicon

Optimizing the admin area for users. Adding a Gravatar Instead of a Favicon, a trifle in order to pay attention to your site.

 

Adding a caption for the post thumbnail

Everything is simple, if you need to leave a comment for your clients, then this can be done with the following code.

By adding the code you will get a signature under the thumbnail block in the admin panel.

Removing the URL field in the comment form

 

Hide pages from the list for Administrators when editing

This is a great little snippet., which will exclude pages, based on ID from the list of pages from administrators. Just add this snippet to functions.php your topic WordPress and update the array with your pages ID to hide them.

 

I hope the new code snippets in the “WordPress Technical Issues” section will be useful to you.. Good luck with development.


Buy WordPress hosting
/* WordPress tutor
Online tutoring services. List of courses I teach
  • Basic web design course;
  • Site layout;
  • General course on CMS WordPress and continuation of the course on template development;
  • Website development in PHP.
Read more on the page WordPress tutor
*/

Nikolaenko Maxim

Director of web studies ProGrafika. I am developing, website design and promotion. Always glad to new blog readers and good clients.


You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Templates for WordPress
The best hosting in Ukraine
Stable hosting for Drupal