Skip to main content

If current page is the Blog Page then echo something WordPress.

This is the solution of how to echo something if this page is blog page.

<?php
if(is_archive() || is_author() || is_category() || is_home() || is_single() || is_tag()){
  echo "This is Flox Blog Page.";	
}
?>

Read More

If has id remove HTML tag JQuery code.

If has id remove HTML tag JQuery code.

if ( jQuery( "form" ).is( "#pms_login" ) ) {
  jQuery( ".iframe_holder" ).remove();

}

 

If has id change attribute value jquery code.

If has id change attribute value JQuery code.

if ( jQuery( "form" ).is( "#pms_new_subscription-form" ) ) {
  var videoUrlValue = "https://player.vimeo.com/video/45446545641/";
  jQuery( ".iframe_holder" ).attr( "src", videoUrlValue );

}

 

How to create all meta tags dynamic in WordPress code?

Best WordPress plugins for blogs(2019).

In this post we will discuss about How to create a full all meta tags dynamic in WordPress code. Read More

How display post_per_page unlimited?

How display post_per_page unlimited?

$args = array(
'post_type'      => 'post',
'cat'            => '22,47,67',
'orderby'        => 'name',
'order'          => 'ASC',
'hide_empty'     => 1,
'depth'          => 1,
'posts_per_page' => -1
);

‘posts_per_page’ => -1 this is for the no limits post show in the page -1.

How to create a custom post template Custom Post Type UI WordPress plugin.

Hello friends, In this article i will not teach you how to create a custom post in Custom Post Type UI WordPress plugin.

So, first create a custom post, Now you will see that you have no potion to choose custom template.

Copy and paste the code on header part of your theme.

<?php
/*
 * Template Name: Featured Article
 * Template Post Type: post, page, custom_post_name
 */
  
 get_header();  ?>

Where you will see the custom_post_name just change to your custom post name.

 

 

List of all LearnPress – WordPress LMS Plugin shortcodes.

This is the List of all LearnPress – WordPress LMS Plugin shortcodes.

If you want to use the shortcode in your pages then LearnPress wp plugin available below shortcode:

Main shortcode

[learn_press_archive_course]

This shortcode only able use in the Courses Page of LearnPress.

Basic shortcodes:

[learn_press_recent_courses]
[learn_press_featured_courses]
[learn_press_popular_courses]

Orther shortcdoe:

[learn_press_confirm_order]
[learn_press_profile]
[learn_press_become_teacher_form]
[learn_press_login_form]
[learn_press_checkout]

How to redirect WP-Members plugin after Log In redirect to Other Page?

Hello friends. Some day ago i face a problem that when i will use a plugin called WP-Members Membership Plugin , I need custom redirect when i will login to the WordPress website.

The solution is:

Open Your Function.php File and paste this below code.

add_filter( 'wpmem_login_redirect', 'my_login_redirect', 10, 2 );
function my_login_redirect( $redirect_to, $user_id ) {
    
    // This will redirect to https://yourdomain.com/your-page/
    return home_url( '/your-page/' );

}

 

Update node version in windows.

This is the code for Update node version in windows.

npm install -g npm-windows-upgrade
npm-windows-upgrade

 

npm ERR! Unexpected end of JSON input while parsing near ‘…10.0″,”grunt-contrib-‘

npm ERR! Unexpected end of JSON input while parsing near '...10.0","grunt-contrib-'

C:\Users\Flox Enterprises>npm install -g @angular/cli
npm ERR! Unexpected end of JSON input while parsing near ‘…10.0″,”grunt-contrib-‘

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Flox Enterprises\AppData\Roaming\npm-cache\_logs\2019-04-20T09_07_52_276Z-debug.log

Read More