Category: Wordpress

Find all my articles related to WordPress here. Also check out My Best-of articles dedicated to WordPress.

  • Change the Default Excerpt Length in WordPress

    Change the default excerpt length in WordPress

    The WordPress excerpt via the `the_excerpt()` function is a brief summary of a post from your WordPress blog that appears wherever it is called, typically on archive pages (categories, tags, author pages), search results, and in some cases, on your site's homepage, but also in the RSS feed and…

    Read more


  • WordPress Snippet: display custom text after the title of an article in a specific category

    WordPress Snippet: Display Custom Text After a Post Title in a Specific Category

    Quick reference: Here's a short code snippet to add to your functions.php file to display a small text tag right after an article's title if it belongs to a specific category. This is useful, for example, when you want to emphasize that the article belongs to a particular category. I…

    Read more


  • How to integrate a Google Analytics tag by domain with WPML

    How to integrate a Google Analytics tag by domain with WPML

    Hello everyone! I had a bit of trouble inserting the famous Google Analytics tracking tag on multilingual sites using the WPML plugin, so I'm sharing this little hack with those of you using WordPress that will give you a quick solution. Indeed, to integrate a Google Analytics tag by…

    Read more


  • WordPress: how to have a domain name by language with WPML

    WordPress: how to have a domain name by language with WPML

    Do you want a multilingual website with a domain name for each language? It's very simple with WPML. Instead of having mydomain.com/fr, you can have mydomain.fr and mydomain.com. Here's how. Configure your DNS. On the DNS side, with your registrar, you need to point the domain name to the IP address of the server that hosts the…

    Read more


  • How to get rid of SPAM on WordPress

    How to get rid of SPAM on WordPress

    Hello everyone! I hope you're all doing well 🙂 I'm taking the time to write this post to share my ideal combination for fighting spam on WordPress and BuddyPress. Indeed, spam is one of the scourges of the web, and particularly in the WordPress world. Between the cascade of spammer registrations, the…

    Read more


  • Is Akismet antispam paid? Here is a free, quick and super simple alternative

    Is Akismet antispam paid? Here's a free, fast, and super simple alternative

    Hello everyone. If you own WordPress blogs, whether for profit or not, Akismet may have blacklisted access to your API key in the WordPress dashboard. Akismet is now very strict about the following three conditions for a WordPress blog to use its anti-spam service for free: You don't have…

    Read more


  • Create a shortcode for the permalink of a WordPress article

    Create a shortcode for a WordPress post's permalink

    I needed to create a shortcode to display the link to a WordPress post. Here's the code I added to my functions.php file: [code] add_shortcode( 'my_permalink', 'my_permalink' ); // The Permalink Shortcode function my_permalink() { ob_start(); the_permalink(); return ob_get_clean(); } [/code] And then all I had to do was use the shortcode…

    Read more


  • BuddyPress: how to remove rich text on xprofile text area

    Here is a little trick for BuddyPress to remove the rich text functionalities of the editor from the xProfile text areas, like bio field for example. Add this custom code to bp-custom.php to disable the rich text: [code] /*———-*/ /* REMOVE rich text on xprofile text area /*———-*/ function antipole_remove_rich_text( $field_id = null ) {…

    Read more


  • BuddyPress Tip: How to Remove Visual Editor from Text Profile Fields

    BuddyPress Tip: How to Remove the Visual Editor from Text Profile Fields

    Here's a little tip I'd like to share that's very useful on BuddyPress installations: it involves disabling your social network users' ability to use "rich text features" (which include italics, bold, etc.) in multi-line profile fields, such as the "About" field.

    Read more


  • BuddyPress – Create an automatic country dropdown list in profile field

    Are you looking for a function that imports all countries of the world to a BuddyPress profile field called «Country»? This code is for you. Consider that you open an international BuddyPress social network and you want let your users select their country. It's annoying to manually add countries one by one. The solution…

    Read more