WordPress – TecAdmin https://tecadmin.net How to guide for System Administrator's and Developers Fri, 11 Nov 2022 16:37:06 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.1 10 Simple Ways to Speed Up Your WordPress Website https://tecadmin.net/ways-to-speed-up-your-wordpress-website/ https://tecadmin.net/ways-to-speed-up-your-wordpress-website/#comments Thu, 03 Nov 2022 09:37:43 +0000 https://tecadmin.net/?p=11533 Did you know that the average user will abandon your website if it takes longer than 5 seconds to load? That’s right, if your website loads too slowly, users will get frustrated and leave. In fact, Statistica reports that 47% of online shoppers will abandon a website if it takes more than 3 seconds to [...]

The post 10 Simple Ways to Speed Up Your WordPress Website appeared first on TecAdmin.

]]>
Did you know that the average user will abandon your website if it takes longer than 5 seconds to load? That’s right, if your website loads too slowly, users will get frustrated and leave. In fact, Statistica reports that 47% of online shoppers will abandon a website if it takes more than 3 seconds to load. If you’ve ever spent time browsing the Internet, you’ll know how crucial speed is to keep users engaged. It doesn’t matter how great your content is or how good your site looks – if it doesn’t load fast enough, people won’t stick around long enough to find out. Luckily, there are lots of ways you can optimize your website so that it loads faster than ever before.

Your website is the first impression your potential customers will have of your business. Whether it’s a personal blog or an eCommerce store, you want your site to look great and load quickly. If you find yourself often frustrated by slow page loads and lagging performance, it’s time to consider speeding up your WordPress site. A fast website not only makes users happy but also helps search engines index your pages faster. With that in mind, let’s take a look at some easy ways to make your site faster than ever before.

In this blog post, we will discuss a few ways to speed up your WordPress website.

1. Select Correct Hosting Provider

Web hosting is essential to get space for your WordPress website over the web. There are many companies involved in web hosting services that can help you in this regard. One can find different types of web hosting plans that vary in terms of their time duration and charges. However, the website owner has a choice to opt the desired web hosting plan for the site for a specific time duration and pay accordingly.

Simple Ways to Speed Up Your WordPress Website

2. Install a WordPress Performance Plugin

A WordPress performance plugin is a simple software solution that can help you optimize your website for speed. These plugins can improve the way your website loads by caching content, compressing images, managing asset delivery, and more. You can find lots of WordPress performance plugins on the internet. We recommend WPRocket, which is trusted by over 1 million WordPress users.

WPRocket is easy to install and fully customizable. Once you install it, you can go into your website’s settings and choose how you want to optimize your site for speed. WPRocket also comes with a Site Audit tool that analyzes your site and tells you where you’re experiencing issues and how you can improve your website’s speed.

WP-Rocket: Speed Up Your WordPress Website
WP-Rocket: Speed Up Your WordPress Website

3. Select the Right Theme or Framework

Your website’s theme is one of the biggest factors that affect how fast it loads. If your theme is too heavy, it will slow down your site. If your theme is lightweight, however, it won’t cause as much of a delay. Unfortunately, many people don’t realize this and end up choosing a theme that is too heavy. If you want to speed up your website, you should choose a lightweight theme. To find a lightweight theme, check out this list of the top 20 fastest WordPress themes. You should also make sure that you’re not using too many plugins – each one can slow down your site.

Boost Your WordPress 1

4. Optimize Your Images

Images can make your website more attractive and engaging, but if they’re too large, they’ll slow down your site. If you want to speed up your website and keep your users happy, you need to optimize your images. This means you’ll need to find an image editing software that can help you change their size without compromising their quality.

You can use an image editing tool to reduce the size of your images without losing any quality by: When you optimize your images, you’ll make your website faster. This means that users will be less likely to get frustrated and leave – and they’ll be more likely to click through to the next page.

5. Define a Content Strategy

Ever noticed how some websites seem to constantly update their content, while others don’t update as often? The difference is likely in the content strategy. A content strategy is a blueprint you follow to create content on your website. With a content strategy, you can create a schedule and streamline your publishing process, which reduces the time it takes to create new content. This means you can create and publish new content more quickly, which speeds up your website.

A content strategy can also help you to focus on quality content rather than quantity. This means that you’ll create fewer posts but you’ll publish posts that contain more information. When you publish fewer posts but focus on quality, you can help your visitors. This means that your content will be more beneficial and your readers will benefit from it.

6. Combine Static and Dynamic Content

Static and dynamic content are two different types of content that websites often use. Static content is unchanging, while dynamic content is content that changes regularly. You might notice that some websites use more static content while others use more dynamic content. This difference can affect how quickly the site loads. When you combine static and dynamic content, you can help your website load faster. This is because some of your content will remain unchanged, while other content will change regularly.

Instead of creating one big post that changes everything on your website regularly, create a post that is static and another post that changes regularly. When you combine static and dynamic content, you can help your website load faster. This is because some of your content will remain unchanged, while other content will change regularly.

7. Content Deliver Network (CDN)

The Internet is constantly growing, and having a website that loads quickly is essential. A CDN is a network of servers across the world that can help speed up your WordPress website. This can be especially important if you have a large number of visitors. There are several types of CDN, but they all serve the same purpose: to cache pages and make them load more quickly. You should use a CDN if you’re worried about slow performance or high traffic.

There are several advantages to using a CDN. First, it can improve the overall speed of your WordPress site by reducing latency. Second, it can help reduce server strain because it reduces the number of requests on a given server. Third, it can also help with SEO because it adds a layer of content to your site.

8. Enable Gzip Compression

Gzip compression is a feature that some hosting providers include as part of their service. If you’re using shared hosting, you may already have to gzip compression. If you don’t, you can enable it in your website’s settings. Gzip is a type of compression that can help to reduce the size of your website’s assets. This means that your website will load faster. Gzip compression can help to speed up your website, especially if you’re using WordPress. If you enable gzip compression, it will reduce the size of your WordPress site and help to speed it up.

Boost Your WordPress 3

9. Keep the Database Optimized

The proper optimization of your website’s database may help you boost site’s speed. It can be done by using the plugin that optimizes the database of the site correctly. For instance, WP-Sweep is a significant database optimizer plugin that includes valuable functions which enable one to manage the database of the site easily. This may result in increasing the site’s online performance and speed too.

Boost Your WordPress 4

10. Resolve 404 Errors

Many times, you have encountered with 404 errors or not found an error while searching any web page online. If your WordPress site starts showing a 404 error, then it’s important to remove it immediately. This error shows disconnection of it from the server and can also lower the speed of the website. By resolving this issue, you can easily improve the speed of the site.

How to Redirect 404 Error Pages to Home Page in WordPress

Boost Your WordPress 2

Conclusion

If you want to speed up your WordPress website, you need to look at your site’s design, images, and content. You can also install a website performance plugin to help you optimize your site for speed. If your website takes too long to load, users will get frustrated and leave. Make sure that your website loads quickly by optimizing your images, using lightweight themes, and combining static and dynamic content. You can also enable gzip compression to help reduce the size of your site. If you follow these tips, you can speed up your WordPress website and keep your users happy.

The post 10 Simple Ways to Speed Up Your WordPress Website appeared first on TecAdmin.

]]>
https://tecadmin.net/ways-to-speed-up-your-wordpress-website/feed/ 8
How to Configure Nginx for WordPress Permalinks https://tecadmin.net/nginx-for-wordpress-permalinks/ https://tecadmin.net/nginx-for-wordpress-permalinks/#comments Thu, 02 Apr 2020 17:28:44 +0000 https://tecadmin.net/?p=20004 Permalinks is a URL structure that can link to a specific blog post. It is also used to create archives and pagination links. The permalink allows you to have an anchor point for any blog post, regardless of the path name. WordPress is a popular content management system (CMS) written in PHP. MySQL is the [...]

The post How to Configure Nginx for WordPress Permalinks appeared first on TecAdmin.

]]>
Permalinks is a URL structure that can link to a specific blog post. It is also used to create archives and pagination links. The permalink allows you to have an anchor point for any blog post, regardless of the path name. WordPress is a popular content management system (CMS) written in PHP. MySQL is the backend database server for WordPress. It maintains its URLs with a permalink, the full URL of any post, page, or other website content. Apache web server uses .htaccess to manage permalinks for WordPress. Nginx doesn’t follow .htaccess, So we need to make changes in the Nginx configuration to follow permalinks by the Nginx web server.

Setup Nginx for WordPress Permalinks

A WordPress website/blog can be run on the main domain or with a directory URL. For example, your blog is running with the main domain. Edit the Nginx configuration file and add the following line under the location section.

location / {
    index index.php index.html index.htm;
    try_files $uri $uri/ /index.php?$args;
}

If you are running your blog under subdirectory URL like /blog, use location a /blog block to your configuration file

location /blog {
    index index.php index.html index.htm;
    try_files $uri $uri/ /index.php?$args;
}

Save your file and restart the Nginx service.

systemctl restart nginx.service 

That’s it. Now WordPress will be accessible with configured permalinks under the General settings.

Change WordPress Permalinks

The default WordPress permalinks are not SEO friendly, which is not good for the SEO of your application. You need to change permalink settings to make URLs SEO-friendly. To change permalinks, Login to admin panel >> Settings >> Permalinks option.

Default Permalinks:

  • https://tecadmin.net/?p=101

SEO Friendly Permalinks:

  • https://tecadmin.net/post-name
  • https://tecadmin.net/category/post-name
  • https://tecadmin.net/2020/01/22/post-name

Wordpress permalinks setting

Conclusion

URLs play a good role in website SEO. In WordPress, you can change the URL type by configuring the permalink settings. This tutorial helped you to configure the Nginx web server to handle custom permalinks of WordPress.

The post How to Configure Nginx for WordPress Permalinks appeared first on TecAdmin.

]]>
https://tecadmin.net/nginx-for-wordpress-permalinks/feed/ 3
Update WordPress Ping List to Quick Index of Posts https://tecadmin.net/update-wordpress-ping-list/ https://tecadmin.net/update-wordpress-ping-list/#respond Tue, 16 Jan 2018 19:57:35 +0000 https://tecadmin.net/?p=14814 Every blogger and author wants their posts to get indexed as quickly as possible. So their new content will be visible on search engines. Generally, search engines crawlers come to website and index the new content found. But this process takes times. Using the ping services you can inform the search engines that your website [...]

The post Update WordPress Ping List to Quick Index of Posts appeared first on TecAdmin.

]]>
Every blogger and author wants their posts to get indexed as quickly as possible. So their new content will be visible on search engines. Generally, search engines crawlers come to website and index the new content found. But this process takes times. Using the ping services you can inform the search engines that your website have new content, so they can visit your site quickly.

For static sites, you can use services like Ping-o-Matic to ping the search engines. But this is a manual process. WordPress users can use this service automatically even WordPress does this. You can configure your WordPress with more ping lists to update more quickly to among search engines.

WordPress Ping List URLs

Below is the list of ping URLs can be used with your WordPress blog. Copy the below lists in system clipboard.

http://1470.net/api/ping
http://api.feedster.com/ping
http://api.moreover.com/ping
http://api.moreover.com/RPC2
http://api.my.yahoo.com/RPC2
http://api.my.yahoo.com/rss/ping
http://bblog.com/ping.php
http://bitacoras.net/ping
http://blo.gs/ping.php
http://blog.goo.ne.jp/XMLRPC
http://blogdb.jp/xmlrpc
http://blogmatcher.com/u.php
http://blogs.yandex.ru/
http://bulkfeeds.net/rpc
http://coreblog.org/ping/
http://geourl.org/ping
http://ipings.com
http://mod-pubsub.org/kn_apps/blogchatt
http://ping.amagle.com/
http://ping.bitacoras.com
http://ping.blo.gs/
http://ping.bloggers.jp/rpc/
http://ping.blogmura.jp/rpc/
http://ping.blogs.yandex.ru/RPC2
http://ping.cocolog-nifty.com/xmlrpc
http://ping.exblog.jp/xmlrpc
http://ping.fc2.com/
http://ping.feedburner.com
http://ping.myblog.jp
http://ping.rootblog.com/rpc.php
http://ping.rss.drecom.jp/
http://ping.syndic8.com/xmlrpc.php
http://ping.weblogalot.com/rpc.php
http://ping.weblogs.se/
http://pingoat.com/goat/RPC2
http://rcs.datashed.net/RPC2/
http://rpc.blogbuzzmachine.com/RPC2
http://rpc.bloggerei.de/
http://rpc.bloggerei.de/ping/
http://rpc.blogrolling.com/pinger/
http://rpc.copygator.com/ping/
http://rpc.icerocket.com:10080/
http://rpc.newsgator.com/
http://rpc.odiogo.com/ping/
http://rpc.weblogs.com/RPC2
http://rpc.pingomatic.com
http://rpc.technorati.com/rpc/ping
http://rpc.twingly.com
http://topicexchange.com/RPC2
http://trackback.bakeinu.jp/bakeping.php
http://www.a2b.cc/setloc/bp.a2b
http://www.bitacoles.net/ping.php
http://www.blogdigger.com/RPC2
http://www.blogoole.com/ping/
http://www.blogoon.net/ping/
http://www.blogpeople.net/servlet/weblogUpdates
http://www.blogroots.com/tb_populi.blog?id=1
http://www.blogshares.com/rpc.php
http://www.blogsnow.com/ping
http://www.blogstreet.com/xrbin/xmlrpc.cgi
http://www.feedsubmitter.com
http://www.lasermemory.com/lsrpc/
http://www.mod-pubsub.org/kn_apps/blogchatter/ping.php
http://www.newsisfree.com/RPCCloud
http://www.newsisfree.com/xmlrpctest.php
http://www.pingerati.net
http://www.pingmyblog.com
http://www.popdex.com/addsite.php
http://www.snipsnap.org/RPC2
http://www.weblogalot.com/ping
http://www.weblogues.com/RPC/
http://xmlrpc.blogg.de
http://xping.pubsub.com/ping

Updating WordPress Ping List

Login to your WordPress admin dashboard and navigate to Settings >> Writing.

Pase all the ping lists copied above to the Update Services input box and save this.

All done. Now WordPress automatically ping to all URLs configured above whenever you created a new post for updated existing post.

The post Update WordPress Ping List to Quick Index of Posts appeared first on TecAdmin.

]]>
https://tecadmin.net/update-wordpress-ping-list/feed/ 0
Reset WordPress Admin Password via SQL or phpMyAdmin https://tecadmin.net/reset-wordpress-admin-password/ https://tecadmin.net/reset-wordpress-admin-password/#respond Sun, 05 Nov 2017 09:36:43 +0000 https://tecadmin.net/?p=14080 Question – How to reset WordPress admin password via SQL query? How to reset WordPress admin password using phpMyAdmin? How to Reset WordPress forgotten password with SQL query? How to find WordPress default admin password? If you have forgotten your SugarCRM admin password or due to any reason, you are not able to login to [...]

The post Reset WordPress Admin Password via SQL or phpMyAdmin appeared first on TecAdmin.

]]>
Question – How to reset WordPress admin password via SQL query? How to reset WordPress admin password using phpMyAdmin? How to Reset WordPress forgotten password with SQL query? How to find WordPress default admin password?

If you have forgotten your SugarCRM admin password or due to any reason, you are not able to login to SugarCRM with admin user. You can simply check the active admin user using SQL query and reset the password with simple SQL query.

Reset WordPress Admin Password via SQL

The first query will fetch show the details of the administrator account based on username.

SELECT * FROM wp_users WHERE user_login = 'admin';

If you only have the email address of admin user. Search user details using the command.

SELECT * FROM wp_users WHERE user_email = 'admin@example.com';

WordPress uses md5 encrypted passwords. The query will change the password for the specified username. You must change new_password with your password and ID with the got ID from above queries.

UPDATE wp_users SET user_pass = md5('new_password') WHERE ID = 1;

Reset WordPress Admin Password via phpMyAdmin

You can also connect WordPress database with phpMyAdmin and reset the admin password. Open table wp_users and edit the record of the admin user. Now under the user_pass column, select the MD5 in functions and put plain text password in value section and save it.

Reset WordPress Admin Password

The post Reset WordPress Admin Password via SQL or phpMyAdmin appeared first on TecAdmin.

]]>
https://tecadmin.net/reset-wordpress-admin-password/feed/ 0
Everything You Need to Know About Migrating a WordPress Website to HTTPS https://tecadmin.net/migrating-a-wordpress-website-to-https/ https://tecadmin.net/migrating-a-wordpress-website-to-https/#respond Fri, 10 Mar 2017 17:20:27 +0000 https://tecadmin.net/?p=11685 Google has been pretty adamant in its efforts to make the web more secure. First, by proposing that web browsers should start flagging all HTTP pages as insecure, then by boosting search engine rankings for websites which use HTTPS. Additionally, Google has decided to place a red X in the address bar, striking through websites [...]

The post Everything You Need to Know About Migrating a WordPress Website to HTTPS appeared first on TecAdmin.

]]>

Google has been pretty adamant in its efforts to make the web more secure. First, by proposing that web browsers should start flagging all HTTP pages as insecure, then by boosting search engine rankings for websites which use HTTPS. Additionally, Google has decided to place a red X in the address bar, striking through websites which don’t use a secure, or HTTPS connection and plans on marking all non-secure pages, including HTTP with the same indicator used to indicate a broken HTTPS links. But are these reasons enough to migrate your WordPress from HTTP to HTTPS?

What is HTTPS?

HTTPS or HyperText Transfer Protocol Secure is a protocol used to allow secure communication between your browser and the web server. Unlike HTTPS, which is a secure connection, HTTP is insecure and it’s possible for any unauthorized parties to intercept and listen to the communication between you and the website. This communication is typically pretty ordinary unless you’re entering any sensitive information including a password, credit card info or a social security number. HTTPS adds a layer of security over the communication using SSL/TSL or Secure Sockets Layer and Transport Layer Security protocol by encrypting the data and protecting its integrity during transfer.

Why should you move to HTTPS?

There are several reasons why you should move your WordPress website to HTTPS. The first and most obvious one is security. With HTTPS, all the information, which would normally be sent as plain text, is completely encrypted. This is particularly useful for e-commerce websites, which handle customer information on a daily basis. Secondly, it has added SEO benefits due to HTTPS being a ranking signal. Finally, green address bar helps build what is called SSL trust. This means that the customers are more relaxed when they know that their data is secure.

Transferring to HTTPS


The basic requirement for transferring your WordPress website from HTTP to HTTPS is an SSL certificate. You can either buy one using a certified vendor or by asking your provider to get one for you. A single domain certificate costs around $9 per year. Once you have the certificate, it’s time to install it on your website. First, you need to generate a CRS code and an RSA key and take them and the certificate and give them to your WordPress host.

Redirecting HTTP to HTTPS

Now that you have installed the SSL certificate, it’s time to redirect all HTTP traffic to HTTPS. Fortunately, there’s a WordPress plugin just for that called Really Simple SSL. It detects the existing settings and configures your website to run over HTTPS. If you’re using an Apache server, you can redirect the traffic using the following line of code which you add to the .htaccess file:

RewriteEngine on
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.yourwebsite.com/$1 [R=301,L]

Updating links to HTTPS

This is a pretty straight-forward job. You can do it by hand, by that would take a lot of time. Instead, you can use a free WordPress plugin called Better Search Replace, which does this job automatically. Once you install it, navigate to the Tools section of the WordPress dashboard and select the Better Search Replace plugin. Click on Search/Replace and under Search for enter the old WordPress domain address and under Replace with the HTTPS address. Once you’ve selected the necessary tables, simply click Run Search/Replace.

Transferring CDN to HTTPS

As you migrate your WordPress website to HTTPS, you should to the same with any CDNs you might be using. If you don’t, you risk getting a mixed-content warning on your website. There are numerous tutorials available on the internet on how to accomplish this, so feel free to check them out. Once you’ve updated the CDN, it’s time to update that info in the WordPress plugin used for integration. You can use CDN enabler to switch the URL from HTTP to HTTPS and enable the CDN HTTPS option.

Check for Mixed Content Warnings

When you move to HTTPS, the biggest challenge you’ll experience is preparing your content for secure connections. When a page is loaded via HTTPS, all the elements such as images or JavaScript files need to be loaded via HTTPS as well. If you don’t, you’ll end up getting a lot of mixed content warnings. The easiest way to check your WordPress website is to use the SSL Check tool, which crawls your website a looks for insecure elements such as images and JavaScript. Once found, you should replace them with HTTPS equivalents.

Updating the Google Search Console Profile

Now that your website is running on HTTPS, the next step is to create a new HTTPS version of the Google Search Console profile. When you’ve finished creating the new profile, it’s time to re-submit the sitemap files. Those who have a disavow file need to update it as well. Simply go to the Google’s Disavow Tool, select your old HTTP profile and download the file. Open the tool again, only this time you’ll have to submit the HTTPS version of the disavow file.

Updating Google Analytics

Finally, you need to update your Google analytics. This does not affect the analytics data, but it does, however, help when you have to link your WordPress website to the Google Search Console. All you have to do is to click on the domain property settings and change the default URL to HTTPS version. Do the same for the view settings and remember to re-link the newly created Search Console Profile with the Analytics account.

At this moment, HTTPS is the leading standard when it comes to website security. Although migrating your WordPress website from HTTP to HTTPS requires a little more work, it does come with a number of added benefits. Not to mention that if you follow the guidelines closely, the work itself is fairly easy. Just make sure to update the SSL certificate once a year. This may sound like a hassle, but it’s a small task to ensure the privacy and security of your data, and the data of your users.

The post Everything You Need to Know About Migrating a WordPress Website to HTTPS appeared first on TecAdmin.

]]>
https://tecadmin.net/migrating-a-wordpress-website-to-https/feed/ 0
WordPress Redirecting 404 Error to Home Page https://tecadmin.net/redirect-404-error-pages-home-wordpress/ https://tecadmin.net/redirect-404-error-pages-home-wordpress/#comments Sun, 05 Mar 2017 15:23:44 +0000 https://tecadmin.net/?p=11559 The 404 error means the requested page doesn’t exist on the server. If you are getting multiple 404 errors on your WordPress site and you don’t have any specific page for 404. In this case, you can simply make 301 redirect all 404 requests to your website home page. To do this you don’t need [...]

The post WordPress Redirecting 404 Error to Home Page appeared first on TecAdmin.

]]>
The 404 error means the requested page doesn’t exist on the server. If you are getting multiple 404 errors on your WordPress site and you don’t have any specific page for 404. In this case, you can simply make 301 redirect all 404 requests to your website home page. To do this you don’t need to install the extra plugin on your site, A small PHP code will do this for you.

Redirect 404 Error Pages to Home

Got to your WordPress theme directory and edit 404.php file in your WordPress. Let’s add following small PHP script at top of the file. The first line in the script will make the redirection as 301 permanently.

<?php
  header("HTTP/1.1 301 Moved Permanently");
  header("Location: ".get_bloginfo('url'));
  exit();
?>

Also you can replace .get_bloginfo(‘url’) with your website domain name to avoid extra request to WordPress to get domain name and make redirection more faster like below.

<?php
  header("HTTP/1.1 301 Moved Permanently");
  header("Location: http://www.example.com");
  exit();
?>

Finally, test the redirection in your browser window.

The post WordPress Redirecting 404 Error to Home Page appeared first on TecAdmin.

]]>
https://tecadmin.net/redirect-404-error-pages-home-wordpress/feed/ 8
How to Disable Comments on Attachments in WordPress https://tecadmin.net/disable-comments-on-attachments-wordpress/ https://tecadmin.net/disable-comments-on-attachments-wordpress/#comments Tue, 17 Jan 2017 05:37:48 +0000 https://tecadmin.net/?p=11459 Many of spammers target to media attachments on your WordPress website for comments. You can disable comments on your media attachments by using WordPress plugin or adding custom PHP code in your theme file. Below is the two methods described to disable comments on media attachments. Read: How to Disable Pingbacks and Trackbacks in WordPress [...]

The post How to Disable Comments on Attachments in WordPress appeared first on TecAdmin.

]]>
Many of spammers target to media attachments on your WordPress website for comments. You can disable comments on your media attachments by using WordPress plugin or adding custom PHP code in your theme file. Below is the two methods described to disable comments on media attachments.

Method 1 – Using Plugin

Disable Comments WordPress plugin provides and option to disable comments globally on your WordPress website. This plugin allows you to disable all type of comments like post comments, pages comments, and media comments.

Disable Comments on Attachments

Method 2 – Using PHP Code

If you don’t want to use any plugin, You can disable media comments by adding custom code in your WordPress theme. Edit functions.php in your WordPress theme file and append following code. This will disable comments on your media posts.

function add_filter_media_comment ( $open, $post_id ) {
	$post = get_post( $post_id );
	if( $post->post_type == 'attachment' ) {
		return false;
	}
	return $open;
}
add_filter( 'comments_open', 'add_filter_media_comment', 10 , 2 );

The post How to Disable Comments on Attachments in WordPress appeared first on TecAdmin.

]]>
https://tecadmin.net/disable-comments-on-attachments-wordpress/feed/ 1
How to Disable Pingbacks and Trackbacks in WordPress https://tecadmin.net/disable-pingbacks-trackbacks-wordpress/ https://tecadmin.net/disable-pingbacks-trackbacks-wordpress/#comments Tue, 17 Jan 2017 04:16:02 +0000 https://tecadmin.net/?p=11442 Many spammers used Pingbacks and Trackbacks to create spam content on your WordPress site. This tutorial will help you to disable pingbacks and trackbacks in WordPress. Also, remove old pingbacks and trackbacks from the database. Read: How to Disable Comments on Attachments in WordPress Disable Pingbacks and Trackbacks Use this option to disable pingbacks and [...]

The post How to Disable Pingbacks and Trackbacks in WordPress appeared first on TecAdmin.

]]>
Many spammers used Pingbacks and Trackbacks to create spam content on your WordPress site. This tutorial will help you to disable pingbacks and trackbacks in WordPress. Also, remove old pingbacks and trackbacks from the database.

Disable Pingbacks and Trackbacks

Use this option to disable pingbacks and trackbacks from new articles. Go to WordPress admin panel and then go Settings >> Discussion option. Now uncheck the box showing in below screenshot under Default article settings section.

Disable Pingbacks and Trackbacks

Disable for Existing Articles

The above option will disable the pingbacks and trackbacks for new articles, but you still needs to disable it for existing articles. You can do this by directly querying the database. Change table name wp_posts with your table name if you are using a different prefix.

mysql> UPDATE wp_posts SET ping_status='closed' WHERE post_status = 'publish' AND post_type = 'post';
mysql> UPDATE wp_posts SET ping_status='closed' WHERE post_status = 'publish' AND post_type = 'page';

Remove Pingbacks and Trackbacks

Finally, you need to remote Pingbacks and Trackbacks from existing articles. Use below query to remote it. You may need to change table name wp_comments if using different table prefix.

mysql> DELETE FROM  wp_comments WHERE  comment_type = 'trackback';

The post How to Disable Pingbacks and Trackbacks in WordPress appeared first on TecAdmin.

]]>
https://tecadmin.net/disable-pingbacks-trackbacks-wordpress/feed/ 2
How to Start a Successful Blog https://tecadmin.net/start-a-successful-blog/ https://tecadmin.net/start-a-successful-blog/#respond Fri, 13 Jan 2017 10:27:32 +0000 https://tecadmin.net/?p=11285 What is a ‘Blog‘? Shorthand for “Weblog,” a blog offers a simple approach to present brief pieces of every now and again invigorated Web content. Sponsored with simple to-utilize technology for syndication (e.g., RSS), remarks and trackbacks, blogs are frequently the bursting focuses of web-based social networking universes that can consolidate advanced SEO systems and [...]

The post How to Start a Successful Blog appeared first on TecAdmin.

]]>
What is a ‘Blog‘? Shorthand for “Weblog,” a blog offers a simple approach to present brief pieces of every now and again invigorated Web content. Sponsored with simple to-utilize technology for syndication (e.g., RSS), remarks and trackbacks, blogs are frequently the bursting focuses of web-based social networking universes that can consolidate advanced SEO systems and group building efforts. Now that been stated, if you want to start a blog, but you have limited or no information on the best way to make one, as the most instructional material you find are full of jargons that you don’t even understand. Good news, this is the reason we are here!

Meanwhile, a lot of blogs are been started each day on the web and reaches to end of life in few days. Believe me, this could be entirely frustrating, the majority of this can come to bare when the creators are not enthusiastic about it, thus to make a blog effective, a key object is tolerance. That is, give time to your blog; be passionate and committed to making something out of it. The simple steps of creating your own blog are given below.

Step 1: Choose a Perfect Niche

Regardless of whether you’re thinking about beginning an organization blog, or need to patch up the one you as of now have, there are standard components and practices each organization ought to execute from the very begin

Decide your Blog’s Business Objectives

Before you bounce in and get somebody in your web office to build up your blog website, set aside some time to thoroughly consider the major vital components. This is a basic stride to guarantee your blog is in accordance with your image and additionally organization targets. Among the top business blog objectives are to:

  • Build the brand by providing content to support your offering. This information ought to connect with forthcoming clients.
  • Expand reach by offering prospective customers solutions for their product needs through an assortment of substance structures, for example, agendas and how-to recordings.
  • Support deals by giving potential customer useful information. The specifics rely on upon your product
  • Position senior executive(s) by spotlighting their idea authority. This can be vital for firms that are emphatically connected with their originators. It requires purchase in and responsibility from officials to effectively post.
  • Define Target Readers your perusers ought to be in accordance with your blog’s objectives. While portraying potential readers, it’s a smart thought to describe them as far as socioeconomics, psychographics, and past practices. Additionally, consider how this section carries on social media: would they say they are individuals who make content, remark on substance or simply read content (otherwise known as prowl)?

Step 2: Choose Domain Name

Carefully choose a domain name. Ensure your domain best suited for your Niche. Readers of your blog comprehend what really matters to your blog? When you arrive on the blog name you cherish and have double-checked that nobody is using it, purchase the domain name instantly. It typically costs around $10 to $20 every year for this and it’s justified regardless of each penny to have your own area name for your blog. In any case, on the off chance that you are wanting to set up your blog through Blogger (see point 3 beneath), it’s a whole lot less demanding on the off chance that you buy the domain name specifically through Blogger instead of through a different area name benefit on the grounds that the area will be naturally set to indicate your Blogger blog. You won’t need to experience the procedure to physically include the code yourself to indicate the space your blog.

I likewise propose, in the event that you need to think long haul and would like to transform your blog into an effective business, that you buy all varieties of your space name. That way, you don’t need to stress over another person setting up a site with a space name fundamentally the same as yours

Step 3: Choose Hosting

Recently I asked, “What is the one thing you wish you had done differently when setting up your blog.” I immediately answered, “I wish I had begun with WordPress” So if I were to propose a blog platform, I’d highly recommend WordPress. It’s more expensive, but it gives you more alternatives. As a startup, you may need to pick a cheap and reliable hosting for your blog. Using HostGator might be your most logical option; you don’t really need to spend excessively on hosting. So choose a hosting which gives you hosting space with a considerable amount. We recommend you use HostGator. Additionally, you don’t need to stress over your blog getting bolted or exceeding. People will find you more effortlessly if you come up on the first page or two of Google as opposed to page 133!).

HostGator has interesting and affordable plans that are ideal for starting a blog.

Get 45% off on Shared Hosting Plans.

Start a Successful Blog

Moreover, HostGator gives oversight WordPress hosting plans. Which is supercharged cloud engineering, low-density servers, CDN, and various caching layers. I found this stunning in any case.

Start a Successful Blog

Step 4: Install your Theme

You can use a free premade theme, buy one, hire a website specialist or contract me 🙂 If you choose to install your own, visit HostGator for guidelines on the best way to install your own.
However, where do I get themes?!

  • To use a free theme: Login to WordPress, go to Appearance > Themes > Install Themes and begin your search. Or, on the other hand, you can easily go to wordpress.org/themes.
  • To hire website specialists: you may know someone who can do it for you or you can post a job posting on Odesk.com or Elance.com, now fiverr.com

We may compare this to Content Management System (CMS). It supports the creation and modification of digital content. As of now, it is no longer news that WordPress is the main Content Management System as over half of blogging sites are running with it. Now, you’ve officially built your own blog. Yes! That was easy right? Now you can either move into the next step below to learn further or explore and play around your blog.

Step 5: Start Blogging

  • Congrats! You’ve really set up your own special blog.
  • Visit www.hostgator.com.
  • Pick a Domain name for your blog or pick I officially claim this space.
  • Choose your blog hosting plan.
  • Complete your registration.
  • Log into your new account and install WordPress blog.

Presently if your blog is for business purposes and some other specialty you might need to consider perusing these tips: It’s about the advantages of Blogging.

Benefits of having a Blog

Get a Better Job

Nine in ten organizations mine online profiles before making a new hire. Employers need to hire an individual who have a solid online impact: “Deciding impact is so basic to brands since this is the thing that drives verbal approval – normally the most capable and financially savvy showcasing strategy accessible.”

Start a New Business

That kind of development isn’t ordinary. However, a simple blog can earn you an extraordinary income. A basic blog can be the establishment for a flourishing business in case you’re willing to focus on it.

Sell a Product

A blog can make for a great virtual store. A lot of bloggers has made a small fortune selling several products and other bloggers have found success selling everything from e-books to membership sites.

Get Immediate Feedback

A writer needs to hold up months between completing his/her book and reading the audits, however, bloggers get the chance to read their readers’ comment that day they click ‘publish’.

Gain Influence

What’s the most ideal approach to change the world? You could turn into a politician, activist, or volunteer. Or, then again you could turn into a blogger.

Establish yourself as an Expert in Your Field

Anyone can start a blog on any subject they like. So you don’t get a considerable measure of regard only by saying, “I have a website about that.” But after some time, as you compose more posts and share more of your expertise, your blog will change from ‘simply one more blog’ into a capable exhibition of your insight in a field.

Express Yourself

This one’s pretty simple: a blog is an expressive medium that can contain words, images, and sounds. Whether your blog is a formal business affair or a personal “what-I-ate-for-breakfast-this-morning”, blogging is the powerful form of self-expression.

Become a Published Author

The publishing business isn’t what it used to be and publishers are less likely than at any other time to take a risk on an unknown author. They would much rather give a contract to a writer with an inherent gathering of readers and that is the place having a blog comes in. So keeping a blog isn’t only a decent approach to improve as an author, it might be your fastest path to becoming a published author.

The post How to Start a Successful Blog appeared first on TecAdmin.

]]>
https://tecadmin.net/start-a-successful-blog/feed/ 0
How to Password Protect WordPress Admin (wp-admin) URL https://tecadmin.net/password-protect-wordpress-admin-url/ https://tecadmin.net/password-protect-wordpress-admin-url/#comments Sun, 01 Jan 2017 03:29:46 +0000 https://tecadmin.net/?p=10968 WordPress is the most popular content management system used world-wide. This tutorial will help you to set up password-protected WordPress admin wp-admin directory and make it secure from public use. So that Step 1 – Generate .htpasswd File If you have shell access, you can generate a .htpasswd file using the command line. First, create [...]

The post How to Password Protect WordPress Admin (wp-admin) URL appeared first on TecAdmin.

]]>
WordPress is the most popular content management system used world-wide. This tutorial will help you to set up password-protected WordPress admin wp-admin directory and make it secure from public use. So that

Step 1 – Generate .htpasswd File

If you have shell access, you can generate a .htpasswd file using the command line. First, create the directory structure where you want to place this file. It will good to put this file outside of document root.

touch /etc/apache2/.htpasswds/.htpasswd

Now use the following command to create the first user in .htpasswd. cPanel users can use their dashboard to generate this file. If you don’t have shell access, you can use online htpasswd generator it and put on your server.

htpasswd -m /etc/apache2/.htpasswds/.htpasswd user1

Step 2 – Configure .htaccess

Now create a .htaccess under wp-admin directory on server and put following content. Update the location of AuthUserFile properly as per location of .htpasswd on your server.

# Password Protected wp-admin directory
AuthType basic 
AuthName "Only Admin Allowed"
AuthUserFile /etc/apache2/.htpasswds/.htpasswd 
AuthGroupFile /dev/null
require valid-user

<Files admin-ajax.php>
    Order allow,deny
    Allow from all
    Satisfy any
</Files>

Step 3 – Access Your Website

Now visit your WordPress website home page, It will not prompt for any password. But when you navigate to wp-admin directory, It will prompt for authentication.

The post How to Password Protect WordPress Admin (wp-admin) URL appeared first on TecAdmin.

]]>
https://tecadmin.net/password-protect-wordpress-admin-url/feed/ 5