Blog

  • Replacement of -d in xargs for MacOS

    Replacement of -d in xargs for MacOS

    As we all know -d will not work in macOS.

    Also, placeholder % will not work in macOS.

    Look at the following command which uses xargs in Ubuntu

    wp term generate category --format=ids --count=3 | xargs -d ' ' -I % wp term meta add % foo bar
    

    The above command will give the following error if you execute in macOS

    So in order to execute the above command in macOS, you could do the following:

    wp term generate category --format=ids --count=3 | xargs -n1 -I {} wp term meta add {} foo bar

    That’s it guys and girls!

  • Woo Post Sponsorship

    Woo Post Sponsorship

    Woo Post Sponsorship is a WooCommerce add-on that allows users to sponsor your posts.

    Pre-requirements

    • WooCommerce Plugin Should be installed.

    How to setup

    1. Install Woo Post Sponsorship Plugin.
    2. Select Woo Post Sponsorship menu in Admin Dashboard.
    3. Click on “Select Post type for Sponsorship” and Select Post-Types to make sure the Sponsorship feature is enabled for the Post-Type you want.
    4. [Optional] The Sponsorship shop page can also be changed by clicking on “Sponsorship Shop Page“.
    1. Now Go to Products -> Add New.
    2. Enter the Product name, and description as you want.
    3. Scroll down a bit, There will be a section called Product Data.
    1. Select Sponsorship Product from the dropdown.
    2. Enter the Sponsorship Price and Validity according to your needs.
    3. Click on Publish.

    How Plugin Works?

    How to EARN MONEY from your BLOG site by SPONSORSHIP ? | Woo Post Sponsorship | Bili Plugins

  • ActiveCampaign Newsletter Subscription Pro

    ActiveCampaign Newsletter Subscription Pro

    This is a pro plugin of ActiveCampaign Newsletter Subscription WordPress plugin.

    Here is the free plugin: https://wordpress.org/plugins/activecampaign-newsletter-subscription/

    This pro plugin has compatibility with the following plugins:

    • BuddyPress
    • WooCommerce

    Newsletter subscription is applicable only to the registration form.

    This plugin needs at least ActiveCampaign Newsletter Subscription v1.0.1

    Contact me for 50% off on Twitter.

  • Comment Mention Pro

    Comment Mention Pro

    This is a pro plugin of Comment Mention WordPress plugin.

    TO USE THIS PRO PLUGIN, MAKE SURE YOU HAVE THE LASTEST Comment Mention PLUGIN v1.3.0

    Here is the free plugin: https://wordpress.org/plugins/comment-mention/

    How Pro plugin works?

    How "Comment Mention PRO" Works | WordPress Plugin | Bili Plugins

    Followings are added as a pro feature.

    • Search by First/Last name while mention.
    • Enable mentioning on Page comment.
    • Go to wp-admin –> Comment Mention
    • And you will see options to enable pro features https://prnt.sc/r5W2X4utYe3v

    If you have any issue with Pro plugin, discuss it here https://bhargavb.com/forums/forum/plugin-issues-discussion/

  • How to fix – Fingerprint has already been taken

    How to fix – Fingerprint has already been taken

    Sometimes we have “Fingerprint has already been taken” while adding our ssh key.

    To fix that issue, we need to generate a new ssh key. But the problem is your existing ssh key is added to other resources so if you generate a new one, you have to replace it everywhere.

    Instead of doing this, generate a new ssh key in a new file and add it wherever it is needed.

    Run the following commands on the terminal to generate the SSH key:

    ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

    Then it will ask where to generate:

    Generating public/private rsa key pair. 
    Enter file in which to save the key (/home/<NAME>/.ssh/id_rsa):

    Give the following name for the file

    /home/<NAME>/.ssh/id_rsa2

    And the last step is to add it to the file by the following command:

    ssh-add ~/.ssh/id_rsa2