• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WordPress Tips, Code Snippets, and How To Tutorials

  • Home
  • Blog
  • Tips
  • Snippets
  • Tutorials
  • Contact

admin

How to update the new user default role on your WordPress website

November 2, 2019 by admin Leave a Comment

If you are using WordPress for your website you may want to update the settings for the website to give a different default role to new users that sign up for your website.

If you want to update the default user role for your WordPress website without using a plugin on there

  1. From the WordPress admin left menu you can click on settings > general
  2. From the general settings page there is a new user default role box you can click on
  3. You can look through the list to find the new user default role you want to set your website to
  4. You can then click on the save button at the bottom of the general settings page

If that works for you it would then update the setting for the new user default role for your WordPress website on there.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: WordPress Tips Tagged With: Users, WordPress Admin, WordPress Settings

How to update the time zone for your WordPress website

November 2, 2019 by admin Leave a Comment

Your WordPress website may be set to a different timezone than the one you want it set to. You can update the time zone of your WordPress website easily through the settings pages on there.

You can update the time zone for your WordPress website without using a plugin on there

  1. From the wordpress admin left menu you can click on settings > general
  2. From the general settings page there is a timezone box you can click on
  3. You can look through the list to find the timezone you want to set your website to
  4. You can then click on the save button at the bottom of the general settings page

If that works for you it would then update the timezone setting for your WordPress website on there.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: WordPress Tips Tagged With: WordPress Admin, WordPress Settings

How to delete comments from the trash folder on your WordPress website

November 1, 2019 by admin Leave a Comment

On your WordPress website if you have moved comments to the trash folder you may want to delete comments from the trash folder or empty the trash folder on there.

To delete comments from the trash folder or empty the trash folder on there

  1. From the WordPress admin left menu you can click on comments
  2. You can then click the trash link at the top of that page
  3. You can then hover over the comment that you want to delete
  4. You can then click the delete permanently link
  5. That would delete the comment

If you want to empty the trash folder

  1. From the WordPress admin left menu you can click on comments
  2. You can then click the trash link at the top of that page
  3. You can then click the empty trash button
  4. That would empty the trash folder

Now if that works for you it would delete that comment or empty the trash folder on there.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: WordPress Tips Tagged With: Comments, WordPress Admin

How to move website comments to the trash folder in your WordPress website

November 1, 2019 by admin Leave a Comment

If you are using WordPress for your website with comments on for the website you may have comments that you want to put in the trash folder on there. In the WordPress comments page of your WordPress admin you have a way to move comments to the trash folder on there.

To move comments to the trash folder on your WordPress website

  1. From the WordPress admin left menu you can click on comments
  2. Hover over the comment in the list that you want to update
  3. There is a menu of links with one for trash on there
  4. You can then click the trash link
  5. That would move that comment to the trash folder

Then if you want to delete the comments from the trash folder you can view this post on there.

Now if that works for you it would move that comment to the trash folder on there.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: WordPress Tips Tagged With: Comments, WordPress Admin

How to move comments to the spam folder in your WordPress website

November 1, 2019 by admin Leave a Comment

On your WordPress website you may receive comments from visitors that you think are spam on there. The WordPress comments have a way for you to move those comments to the spam folder in the WordPress admin.

  1. From the WordPress admin left menu you can click on comments
  2. Hover over the comment in the list that you want to update
  3. There is a menu of links with one for spam
  4. You can then click the spam link
  5. That would move that comment to the spam folder

Now if that works for you it would move that comment to the spam folder on there.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: WordPress Tips Tagged With: Comments, WordPress Admin

How to find the functions.php file of your WordPress website

November 1, 2019 by admin Leave a Comment

If you are using WordPress for your website you may want to find the functions.php file to make updates to it for your website. You can find and edit the functions.php file of your WordPress website through the WordPress admin or through FTP or through your website hosting on there. You may want to backup your WordPress website before you make updates to the functions.php file on there.

To find your functions.php file through your WordPress admin.

  1. From the WordPress admin left menu you can click on appearance > editor
  2. From that page you can look on the right side of the page and then click on functions.php

We recommend that you be very careful when you edit the functions.php file on there.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: WordPress Tips Tagged With: Functions.php, WordPress Admin

How to update the number of blog posts to show on a page of your WordPress website

October 31, 2019 by admin Leave a Comment

If you are using WordPress for your website you may want to update the number of blog posts to show on a page of your website. You can do that without a plugin on there.

  1. From the WordPress admin left menu you can click on settings > reading on there
  2. In the blog pages show at most you can update the number there

Then if that works for you it would update the number of blog posts to show on a page of your website on there.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: WordPress Tips Tagged With: Blog, WordPress Admin

How to remove the URL link from user comments on WordPress

October 31, 2019 by admin Leave a Comment

On your WordPress website when a user makes a comment if they put in a url it often makes that a link in the comments. If you want to make that link not clickable you can then add this code to your functions.php file. You may want to backup your WordPress website before you make updates to that on there.

/**
 * Remove link from user comments
 *
 * @author WPSnacks.com
 * @link https://www.wpsnacks.com
 */
remove_filter('comment_text', 'make_clickable', 9);

Then if that works for you it would remove the links from user comments on there.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: Code Snippets Tagged With: Comments, Functions.php, Links

How to change the length of the default WordPress excerpt length

October 31, 2019 by admin Leave a Comment

If you are using WordPress for your website you may want to change the length of the default excerpt. You can then add this code to your functions.php file. You may want to backup your WordPress website before you make updates to that on there.

/**
 * Update default excerpt length
 *
 * @author WPSnacks.com
 * @link https://www.wpsnacks.com
 */
function the_excerpt_length($length) {
     return #;
}
add_filter('excerpt_length', 'the_excerpt_length');

Then you replace the # with the number of the new length you want the except to be on there.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: Code Snippets Tagged With: Functions.php, Templates, WordPress Admin, WordPress Theme

How to add a shortcode to easily display the year in WordPress

October 31, 2019 by admin Leave a Comment

On your WordPress website you may want to make a shortcode that displays the year. You can then add this code to your functions.php file. You may want to backup your WordPress website before you make updates to that on there.

/**
 * Add year shortcode
 *
 * @author WPSnacks.com
 * @link https://www.wpsnacks.com
 */
function the_year() {
  $year = date('Y');
  return $year;
}
add_shortcode('year', 'the_year');

Then if that works for you when you want to use the shortcode you type in [year] and it would display it.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: Code Snippets Tagged With: Functions.php, Shortcodes

  • « Go to Previous Page
  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to page 4
  • Go to page 5
  • Go to page 6
  • Interim pages omitted …
  • Go to page 14
  • Go to Next Page »

Primary Sidebar

Hey, We Deliver... Anywhere!

Enter Email Address below to receive our snacks via email:

Join Over 1200 Readers!

Jump To A Random WordPress Tip

Copyright © 2019 • wpsnacks.com