Number of views using WordPress
Display the number of views using WordPress without using a plugin. Add code snippet to your theme's functions.php file, then follow the step 1. and step 2. To display the number of views for each individual entry.
Development lessons from own experience
Display the number of views using WordPress without using a plugin. Add code snippet to your theme's functions.php file, then follow the step 1. and step 2. To display the number of views for each individual entry.
Add code snippet to functions.php of your WordPress theme. Open your comments.php in your current template template and put the second commentCount snippet in it ().
Change set featured image text in admin panel Code works fine, I checked. Think, the method itself may be useful to someone, for example, when writing your WordPress build and optimizing usability “Usability”.
1 2 3 4 |
function custom_admin_post_thumbnail_html( $content ) { return $content = str_replace( __( 'Set featured image' ), __( 'Set default image' ), $content); } add_filter( 'admin_post_thumbnail_html', 'custom_admin_post_thumbnail_html' ); |
Creating a user directly from...
Today in Buy WordPress Plugins , I want to bring to your attention a plugin for publishing prices on your site. Such plugins are often used on hosting, when you need to specify tariff plans or to publish a list of services with...
Recently my friend, also a developer and SEO specialist, a great plugin appeared, the possibilities of which allow me to make a full-fledged system for developing any type of sites from the WordPress CMS. And when I say any, that's exactly...
If you often need to take the addresses of images to insert into a metabox or custom field, then creating a separate column with the address of the picture will be most welcome for you. Just add the following code snippet to the functions.php file...
Protecting media files on a blog If you don't want the blog author to see those media files, which they did not upload, you can add the following code to your functions.php file.
Now if you want to read our news every time you visit your blog instead of news from wordpress.org in your dashboard (dashboard), it will be enough for you to add a code snippet to the functions.php file.
Removing the Themes submenu Adding code to your theme's functions.php file, will remove the Themes item for all users, except for the user with the id specified in the code. You can only allow yourself to change themes.
To create a short link in a separate column of the list of articles, just paste the code in the functions.php file.