WordPress Tricks

Free WordPress based website for your pet Dogs or Cats

Here I am sharing you a free demo wordpress website which you can use to create your own website for your pet dogs or cats.

Basically it depends on your passion or love for your pet.

The theme which I used here is free theme Blogus. Please Download Pet Dogs/Cats free WordPress based website. You will need to use All in One Migration plugins to install/use this website. If you face any issue, feel free to contact me at prakash02cuet@gmail.com

Here is how the pages may be looked

Continue reading “Free WordPress based website for your pet Dogs or Cats”
Web Development, WordPress Tricks

Show payment gateway logo in your website

If you want to show apple, gpay, paypal, venmo, discover, afterpay ,visa ,mastercard, american express, payment gateway logo in your website , then you can use my provided html and css code to show them like this ( screenshot below) . Code is provided below. If you have any issue feel free to comments or contact with me at prakash02cuet@gmail.com

Continue reading “Show payment gateway logo in your website”
WordPress Tricks

How to show posts from one wordpress website to another one without importing posts: Rest API and Shortcode

Can you Show posts from one wordpress website to another one without importing the posts?

Yes you can do it using REST API. Just you need to enable REST API of the site which posts you want to show.

I am sharing you a demo code to make you understand how you can code it ( it is a demo code, you need to modify it based on the fields which REST API url is providing) .

Continue reading “How to show posts from one wordpress website to another one without importing posts: Rest API and Shortcode”
WordPress Tricks

wp_actionscheduler_logs Huge size issue and how to solve this

** If the code shared below don’t work, then you can clear the table as per the screenshot i shared below

The database table becomes huge, it may be using either any SEO or Cache plugins ( my guess) you can see the size in the screenshot below, you can clear it as per the screenshot

wp_actionscheduler_logs Huge size issue and how to solve this

also one.com provides this code which should clear the table within 7 days ( which was 30 days by default)

add_filter( 'action_scheduler_retention_period', 'onecom_action_scheduler_purge' );
/**
* Change Action Scheduler default purge to 1 week
*/
function onecom_action_scheduler_purge() {
return 604800;
}

you need to put this above code in function.php ( screenshot below)

wp_actionscheduler_logs Huge size issue and how to solve this function php
WordPress Tricks

How to redirect Author Page URL to Different Page

Change Author Link or Redirect Author URL to different page

Sometimes you may need to change default author url to different page. Here I am sharing you the code which you can use without modifying the theme file.


function modify_author_posts_url( $author_posts_url, $author_id ) {
  // modify the URL here
  $author_posts_url = 'https://www.example.com/';
  return $author_posts_url;
}
add_filter( 'author_link', 'modify_author_posts_url', 10, 2 );

You can use Code Snippet plugins to use the code, here is the screenshot about how you can use the code.

Change Author Link or Redirect Author URL to different page  using Code Snippet
WordPress Tricks

Free Yoga based WordPress Site: Modification of Header, footer, menu, sidebar, author, category and more.

If you are a Yoga instructor and trying to create your website, here is your solution. Here I have shown in a video (4minutes) how you can create your initial Yoga Teaching site for free and how u can set up the site. Also I have shared css codes to modify it

You can see Demo here.

Here is the OceanWP TheAme.

Continue reading “Free Yoga based WordPress Site: Modification of Header, footer, menu, sidebar, author, category and more.”