Hi & Welcome to
My Blog

IF YOU ARE FACING PROBLEMS
WHILE DEVELOPING WEBSITES
I ADDED BLOG POSTS FOR YOU DEVELOPERS
I SHARE MY EXPERIENCE HERE

Scroll Down

27 AprSet page template for all pages in wordpress with database update via functions.php


Set page template for all pages in wordpress with database update via functions.php add_action( ‘admin_init’, ‘set_page_templates’ ); function set_page_templates(){ $current_template =…

Read More

27 AprHow to override or change template forcefully for posts with functions.php?


add_action( ‘admin_init’, ‘set_page_templates’ ); function set_page_templates(){ $current_template = get_post_meta( $page->ID, ‘_wp_page_template’, true ); echo $current_template.’amit’; foreach( get_posts(‘post_type=post&posts_per_page=-1’) as $page ) {…

Read More

09 AprWhatsapp Payment Invite Link


Whatsapp Payment Invite Link: To get the Whatsapp Payment option please click on the invitation button below: Once you will request…

Read More

26 MarDisable New Line in Textarea when Pressed ENTER


Disable New Line in Textarea when Pressed ENTER Disable New Line in Textarea when Pressed ENTER <script> $(document).ready(function(){ $(“textarea”).keydown(function(e){ if (e.keyCode…

Read More

24 MarHow to convert url to embed code from youtube and vimeo url dynamically?


How to convert url to embed code from youtube and vimeo url dynamically. Some video projects includes google api need to…

Read More

23 MarHow to index html table rows? or how to Auto-number table rows?


How to index html table rows or how to Auto-number table rows? CSS: Method 1 table {     counter-reset: rowNumber;…

Read More

18 MarMailChimp API and PHP Script to Add Subscriber in List Campaign


MailChimp API and Php Script MailChimp is an email marketing service, helps to manage the subscribers of your website. MailChimp provides…

Read More

14 MarHow to build a WordPress Post Pagination without plugin?


The function Paste this function code in your theme functions.php file: if ( ! function_exists( ‘post_pagination’ ) ) : function post_pagination()…

Read More

12 MarHow to add menu page with different name for first submenu item in wordpress?


You can make the ‘slug’ for the submenu page equal that of the top level page, and they’ll point to the…

Read More

12 MarHow to create custom widgets in WordPress?


Creating a Custom Widget in WordPress You can also paste the below code in your theme’s functions.php file. However, it will…

Read More

11 MarHow to remove srcset in wordpress : Logo Problem | Images Problem


// Clean the up the image from wp_get_attachment_image() add_filter( ‘wp_get_attachment_image_attributes’, function( $attr ) { if( isset( $attr[‘sizes’] ) ) unset( $attr[‘sizes’]…

Read More

11 MarHow do I disable responsive images in WP 4.4?


// Clean the up the image from wp_get_attachment_image() add_filter( ‘wp_get_attachment_image_attributes’, function( $attr ) { if( isset( $attr[‘sizes’] ) ) unset( $attr[‘sizes’]…

Read More

25 JunjQuery toggling without using toggle


jQuery toggling without using toggle //set initial status $(‘element’).data(‘status’,’not_clicked’); $(‘element’).click(function(){ if( $(this).data(‘status’) == ‘clicked’ ) { $(this).data(‘status’,’not_clicked’); //your code in case…

Read More

14 JunGet Unique Post Meta Values From Meta Key


Get Unique Post Meta Values From Meta Key <?php /* Don't include the opening PHP tag*/ * @param string $key Post…

Read More

20 MayHow to make a custom widget area in wordpress?


custom widget area in wordpress custom widget area in wordpress WordPress Amitpal Singh First of all place this code in function.php…

Read More

12 MayHow to Add Page Slug in Body Class of your WordPress Theme ?


Page Slug in body class Page Slug in body class WordPress Amitpal Singh Put this in your theme functions.php //Page Slug…

Read More

12 MayHow to make scroll to top ?


Scroll to top Scroll to top WordPress Amitpal Singh 1, Place the javascript code inside head tag: <script type="text/javascript"> $(document).ready(function(){ $(window).scroll(function(){…

Read More

11 MayMedia upload default linking (change the attachment link to none in WordPress)


attachment link attachment link WordPress Amitpal Singh Blog This procedure will work for image media default linking in wordpress…… Place this…

Read More