WP For Beginners

2 minutes read
Recently, one of our readers asked how you can exclude categories from the navigation menu on the fly if there are no entries in the category. In this article we will show how to implement our plans. For this solution we will use the wp_get_nav_menu_items filter and the global $ wpdb object [ codex ]. They will help us remove empty terms from any taxonomies. The wp_get_nav_menu_items filter is applied to the array of menu items in the wp_get_nav_menu_items () [ codex ] func...
4 minutes read
Have you decided to add keywords and a meta description to WordPress content? Keywords and page descriptions allow you to improve your site’s SEO. In this article, we will show you how to properly add keywords and meta descriptions in WordPress.   Why Add Keywords And Meta Descriptions To WordPress Key words and descriptions will allow you to tell search engines about your content in posts and pages. Keywords are important words or phrases that people most often request if they were looking...
3 minutes read
In WordPress, when you delete a post or comment, they are placed in the trash. By default, records and comments in the cart remain in your database for 30 days, giving you enough time to restore them if necessary. After 30 days, WordPress automatically deletes all content from the recycle bin forever. In today’s article, we will show you how to limit or disable the automatic cleaning of the WordPress Recycle Bin. What Kind Of Cart In WordPress? When you delete a post, page, or comment in Wo...
a minute read
Older posts on your blog can “extend life” by creating a page template that will redirect readers to a random post. It may also be needed when a visitor wants to read something in the perspective of “useful”, but does not know where to start. Random post to help him 🙂In this article – a simple way to accomplish this. Create a new file and call it page-random.php . Paste the following code into it: 1 <?php 2 // set the parameters for get_posts() 3 $args = array( 4 ...