Entries by admin

WordPress: get author info / user details from post id

Some times we needed to pull out the author data from a post id. It is very easy do it in wordpress. It can be accomplished by the_author_meta() function or get_the_author_meta() function. You will need call this function in your theme or plugin, through a hook. the_author_meta() –> Outputs the data, just like echo get_the_author_meta() -> holds the […]

Get Google To Remove The Blacklist Warning

After fully cleaning up your site infection, you must inform Google to remove the blacklist warning. To do this, you must have a Google Search Console account (formerly Webmaster Tools). This way, the malware warning can quickly be removed. To verify ownership of your website in Google Search Console: Open Google Webmaster Central. Click Search […]

CORS policy: No ‘Access-Control-Allow-Origin’

Font from origin domain.dev has been blocked… (CORS and browsersync) If you are getting issue fonts are blocked in web client CORS then below code will help you. Use the code in .htaccess file and problem will be resolved 🙂 # Allow access from all domains for webfonts. <IfModule mod_headers.c> <FilesMatch “\.(ttf|ttc|otf|eot|woff|woff2|font.css|css)$”> Header set Access-Control-Allow-Origin “*” […]

How to use WordPress Shortcode in template

Shortcodes in WordPress are little bits of code that allow you to do various things with little effort. You can use in the content area to invoke some kind of function to accomplish certain tasks. But what if you want to use a shortcode from within a template instead of with the content of a […]

Web Setup Wizard 401 Unauthorised Access

Today I got issue on Magento2 site when try to open Web Setup Wizard section. System -> Tools -> Web Setup Wizard Here is the solution for fixing this issue. This one works for me so I thought it would be just posted for all of the world 🙂 You have change some settings as […]

What is WordPress Permalink

WordPress offers you the ability to create a custom URL structure for your permalinks and archives. Custom URL structures can improve the aesthetics, usability, and forward-compatibility of your links. Permalinks are the permanent URLs of your individual blog post or page on your WordPress site. Permalinks are also referred to as pretty links. By default, […]

How to enable maintenance mode in Magento

This article describes how to enable maintenance mode in Magento. When Magento is in maintenance mode, visitors see a Service Temporarily Unavailable message in their web browsers instead of the store. However, authorized IP addresses can still view the store normally. This feature allows you to develop and test your store before it goes “live,” or do […]

Know android codes for mobile device

Know android codes for mobile device : 1- For IMEI NUMBER : *#06# 2- for Ram *#*#3264#*#* 3- Phone service menu *#0*# 4- Battery Status *#0228# 5- phone service mode *#9090# 6- Battery use or device related information *#*#4636#*#* 7- Camera related inforamtion *#*#34971539#*#* 8 – Software/Hardware information *#12580*369#

Fix 404 error in WordPress category / tag page

Sometimes, especially after switching themes, WordPress will generate 404 errors on the category and tag pages. There might be multiple reasons – and also multiple solutions – to this, here is simple solution and it will fix the issue Go to your WordPress backend, click Settings, click Permalinks. Make sure the category base is “category” […]

Fix wordpress post 404 error

WordPress is fantastic CMS. Most of the world love it feature and flexibility. I am always try to recommend my clients to use this. Sometimes wordpress users face common problems and one of them in posts 404 error. Today we will learn how we can fix this issue. This is the simple setting we can […]