freewebmentor
FreeWebMentor
536 posts
Don't wanna be here? Send us removal request.
freewebmentor · 5 years ago
Text
WordPress | get_the_post_thumbnail() Function
The get_the_post_thumbnail() is a WordPress builtin function to retrieve the post thumbnail. When a theme adds ‘post-thumbnail’ support, a special ‘post-thumbnail’ image size is registered, which differs from the ‘thumbnail’ image size managed via the Settings > Media screen.
When using the_post_thumbnail() or related functions, the ‘post-thumbnail’ image size is used by default, though a…
View On WordPress
0 notes
freewebmentor · 5 years ago
Text
How to Export and Import a WordPress Menu
How to Export and Import a WordPress Menu
Tumblr media
By default WordPress has not provide an option to export the navigation menus from your WordPress site.
If you want to export all navigation menus, then keep your close attention in this post as I am going to share how to export and import a WordPress menu. This is a step by step guides to export and import WordPress navigation menus.
After doing a quick Google Search, I found this menu…
View On WordPress
0 notes
freewebmentor · 5 years ago
Text
Swift programs for practice, exercises with solution
Swift programs for practice, exercises with solution
Swift is a powerful general-purpose, multi-paradigm, compiled programming language developed by Apple Inc. for iOS, macOS, watchOS, tvOS, and Linux.
Below are the lists of swift programs for practice exercise with solutions which includes add two numbers, subtract two numbers, divide two numbers, dictionary programs, maximum values of two numbers, and etc…
1. Swift program to add two numbers
Clic…
View On WordPress
0 notes
freewebmentor · 5 years ago
Text
What are the four parameters used for jQuery Ajax method?
What are the four parameters used for jQuery Ajax method?
One of my site visitor asked this question via email so that I am going to what are the four parameters used for jQuery Ajax method call. We need to add four mandatory parameter while doing  Ajax call using PHP and jQuery.
Following are the list of those four parameters:
URL – Need to specify the URL to send the request
type – Specifies type of request(Get or Post)
data – Specifies data to be…
View On WordPress
0 notes
freewebmentor · 6 years ago
Text
How to Add Contextual Help to Administration Menus in WordPress
How to Add Contextual Help to Administration Menus in WordPress
This helps WordPress keep the main part of the admin panel clear and concise by eliminating unnecessary text that regular users don’t need to see on a regular basis.
If your plugin adds additional Administration Panels to WordPress, you can improve support by providing contextual help for your menus.
For information, see Adding Administration Menus and the Plugin API functions for a basic…
View On WordPress
0 notes
freewebmentor · 6 years ago
Text
How to connect mysql database in node js
How to connect mysql database in node js
In this tutorial, I am going to share how to connect mysql database in node js with an example. If you are a nodejs beginner, then this tutorial helps you a lot to learn nodejs with MySQL database.
I have written the basic nodejs code so that a beginner developers can understand and implement the same in his/her project.
How to connect mysql database in node js
Create a db_config.js file inside…
View On WordPress
0 notes
freewebmentor · 6 years ago
Text
WordPress | Function get page by title
WordPress | Function get page by title
Tumblr media
WordPress | Function get_page_by_title() retrieves a post given its title. If more than one post uses the same title, the post with the smallest ID will be returned.
Because this function uses the MySQL ‘=’ comparison the $page_title will usually be matched as case insensitive with default collating.
Syntax
get_page_by_title( string $page_title, string $output = OBJECT, string|array $post_type =…
View On WordPress
0 notes
freewebmentor · 6 years ago
Text
How to disable Yoast SEO Schema JSON-LD completely
How to disable Yoast SEO Schema JSON-LD completely
In this tutorial, we are going to share how to disable Yoast SEO schema JSOM-LD completely by using the simple WordPress code.
Yoast SEO 11.0 features a completely rewritten Schema.org implementation — the first one of its kind, offering a fully integrated graph.
By default Yoast, doesn’t include a setting to disable their Schema Data.  They do an OK job constructing it but some of you may want…
View On WordPress
0 notes
freewebmentor · 6 years ago
Text
PHP | array_slice() Function
PHP | array_slice() Function
array_slice() is an inbuilt function of PHP library and it is used to slice an array according tot the user needs.
array_slice() — It returns the sequence of elements from the array array as specified by the offset and length parameters. As already mentioned this function will return the selected or the sliced parts of the given array.
Syntax
array_slice ( array $array , int $offset [, int…
View On WordPress
0 notes
freewebmentor · 6 years ago
Text
How to Switch Post Type in WordPress
How to Switch Post Type in WordPress
In this tutorial, I am going to share the how to switch post type in WordPress by using the simple code snippets inside your functions.php file. It will save your much time if you have huge amount of articles and you want to change the post types.
If you have written the 100+ posts as type post, then it will take more time to migrate those all posts into some other post type. In this scenario,…
View On WordPress
0 notes
freewebmentor · 6 years ago
Text
New Global Constants in php 7
New Global Constants in php 7
Here is the list of New Global Constants in php 7. Below is the syntax how you can use PHP global variables inside your code.
define(name, value, case-insensitive)
Examples to use PHP global variables
<?php define("GREETING", "Welcome to freewebmentor.com"); echo GREETING; ?>
Core Predefined Constants
PHP_INT_MIN
GD
IMG_WEBP (as of PHP 7.0.10)
JSON
JSON_ERROR_INVALID_PROPERTY_NAME
JS…
View On WordPress
0 notes
freewebmentor · 6 years ago
Text
How to use a switch case 'or' in PHP?
How to use a switch case ‘or’ in PHP?
Problem: How to use a switch case ‘or’ in PHP? Solution: This can be achieved in 2 ways.
PHP Switch case syntax
Use the switch statement to select one of many blocks of code to be executed.
switch (n) { case label1: code to be executed if n=label1; break; case label2: code to be executed if n=label2; break; case label3: code to be executed if n=label3; break; ... default: code to be executed if n…
View On WordPress
0 notes
freewebmentor · 6 years ago
Text
WordPress 5.2 Beta 2 is now available for download
WordPress 5.2 Beta 2 is now available for download
There are two ways to test the WordPress 5.2 beta: try the WordPress Beta Tester plugin (you’ll want to select the “bleeding edge nightlies” option), or you can download the beta here (zip) format.
WordPress 5.2 is slated for release on April 30, and we need your help to get there! Thanks to the testing and feedback from everyone who tried beta 1, nearly 100 tickets have been closed since then.…
View On WordPress
0 notes
freewebmentor · 6 years ago
Text
How to Validate Your WordPress AMP Site
How to Validate Your WordPress AMP Site
If you have already enabled the AMP in WordPress website, then you need to validate your WordPress site to see the AMP validation errors and warnings. In this post, I will let you know how to validate your WordPress AMP site step by step with screenshot.
Fortunately, there are several solutions for testing your AMP URLs. Pick a couple of key pages and test the AMP versions using one of the…
View On WordPress
0 notes
freewebmentor · 6 years ago
Text
Cryptocurrency forum submission sites 2019
Cryptocurrency forum submission sites 2019
Cryptocurrency forum submission sites 2019 | Free High DA Cryptocurrency Forum Submission Sites List 2019 | Cryptocurrency forum lists 2019
Are you holding a cryptocurrency related websites and want to drive more traffic to your sites, then this article for you. In this post, I am sharing the free list of cryptocurrency forum submission sites for SEO purposes.
Why submit my site to Cryptocurrency…
View On WordPress
0 notes
freewebmentor · 6 years ago
Text
How to Fix AMP Crawl Errors in Google Search Console
How to Fix AMP Crawl Errors in Google Search Console
Has this happened to you? You check the “Crawl Errors” report in Google Search Console and you see so many crawl errors that you don’t know where to start?
In this tutorial, I will let you know how to deal with crawl errors in Google Search Console for your AMP ( Accelerated Mobile Pages ) pages. Many webmaster and web owners has seen the Crawl error for their AMP page in Google Search Console…
View On WordPress
0 notes
freewebmentor · 6 years ago
Text
How to Fix: Image size smaller than recommended size
How to Fix: Image size smaller than recommended size
Today I ma going to share a very useful tutorial which helps you fix image size smaller than recommended size by adding a simple code. Recently, Google AMP issues report appeared in our Google Search Console with the message Image size smaller than recommended size. What this warning means and is there a way to fix it?
Rules for Images in AMP – Updated 
Only a marked-up…
View On WordPress
0 notes