Welcome To Snipplr


Everyone's Recent Snippets Tagged wordpress



« Prev 1 2 3 4 5 ... 50
  1. FAV

    List Posts By Terms

    To display events from The Events Calendar Pro organized by taxonomy
    PHP 189 views posted 4 weeks ago by reflectiondigital
  2. FAV

    How to extract the tags shared between two different post types in Wordpress

    Extract all the tags (shared between two post types) used with a specific post type
    PHP 143 views posted 3 months ago by ginoplusio
  3. FAV

    Plugin that disables notifications of wp-kernel and wp-plugin updates

    installed in a special folder /wp-content/mu-plugins and disabled auto-update plugins and core WP
    PHP 149 views posted 3 months ago by cerxx
  4. FAV

    Get the Value of the Custom Field Using the Shortcode

    Get the Value of the Custom Field Using the Shortcode
    PHP 94 views posted 5 months ago by cerxx
  5. FAV

    Underconstruction redirect Function

    Underconstruction redirect
    PHP 12 views posted 11 months ago by cerxx
  6. FAV

    How To Remove WooCommerce JSON/LD Structured Data

    Going through the templates and removing really isn’t an ideal solution here. Luckily there is a single function you can add to your child theme’s functions.php file that will disable this.
    PHP 17 views posted 1 year ago by cerxx
  7. FAV

    How to remove application/ld + json YOAST SEO plugin in wordpress

    JSON-LD is one of the micromarking schemes. If you use the SEO plugin Yoast SEO on your website, then it defaults to a JSON-LD scheme for the entire website that cannot be changed. In order for the site owner to be able to use any other microdata, th...
    PHP 20 views posted 1 year ago by cerxx
  8. FAV

    Remove version of CSS / JS files in WordPress

    By default, WordPress adds the? Ver = [version] parameter to the end of the address of all connected CSS and JavaScript files. The use of versioning adds a convenient mechanism for monitoring the state of the browser’s cache. After modifying the file...
    PHP 19 views posted 1 year ago by cerxx
  9. FAV

    Transfer the call scripts from header to the footer on WordPress

    If you have been able to check your site by means of the PageSpeed ??Insights service, you may notice that it is not an easy task to recruit even 80% of the test results. Only by completing most of the recommendations of Google, you can hope for an i...
    PHP 14 views posted 1 year ago by cerxx
  10. FAV

    Logging debug arbitrary information

    In certain cases, it is useful to display additional information in a journal that does not report an error, but simply helps in writing your own code. For this PHP provides the function error_log (). This function does not provide formatting, so yo...
    PHP 12 views posted 1 year ago by cerxx
  11. FAV

    wp-change-domain

    Before moving on to the site migration, make sure that the new domain is parked for hosting. To do this simply: go to your new domain and if a message appears that the site has not been launched yet, then everything is fine. If nothing will open at a...
    PHP 12 views posted 1 year ago by cerxx
  12. FAV

    WordPress/WooCommerce - Redirect add to cart button to the checkout page

    Automatically redirect users to the checkout page once a product has been added to the cart. This code should go to your functions.php file.
    PHP 19 views posted 2 years ago by catswhocode
  13. FAV

    SQL queries to change http to https in WordPress posts/pages

    More info: https://www.catswhocode.com/blog/install-https-wordpress
    SQL 16 views posted 2 years ago by catswhocode
  14. FAV

    Generate all old PDF preview images in WordPress

    From WordPress 4.7 when you upload a PDF it generates jpg previews. All pdf will remain without previews, or you can use this script to generate previews.
    PHP 17 views posted 2 years ago by ginoplusio
  15. FAV

    Contact Form 7 Fields on 2 Columns

    Displaying Contact Form 7 fields on 2 columns using CSS.
    HTML 12 views posted 3 years ago by deliciousthemes
  16. FAV

    Dazzle menu strikethrough line to underline

    Changing the Dazzle`s strikethrough line menu style to underline.
    CSS 14 views posted 3 years ago by deliciousthemes
  17. FAV

    Select Wordpress posts by number of revisions

    Too many revisions taking up space in your database? Use this script to find which posts have more than 10 - and then you can figure out what to do with them.
    PHP 16 views posted 3 years ago by JoshChris
  18. FAV

    Wordpress Query: Sort posts nearest proximity to farthest

    A quick query example for a wordpress database query that gets posts ordered by distance via the custom fields `latitude` and `longitude`.
    PHP 14 views posted 3 years ago by JoshChris
  19. FAV

    Wordpress plugin for Snipplr

    This is the simple plugin for your wp site , with this plugin you can embed snippets code from http://snipplr.com . Easy to use , just paste url from http://snipplr.com and thats it. Version: 1.1
    PHP 16 views posted 4 years ago by snipembed
  20. FAV

    WordPress Video Modal Widget

    A plugin that adds widget functionality to a third-party video modal plugin. The widget accepts a YouTube video ID and a thumbnail URL of the user's choice. It then generates a thumbnail link that launches a video modal via the third-party plugin. Op...
    PHP 23 views posted 4 years ago by julian90
  21. FAV

    Wordpress Loop - WP_Query

    Wordpress Loop - WP_Query
    PHP 16 views posted 4 years ago by alanyoshida
  22. FAV

    How to add a simple jQuery script to WordPress

    First you need to write your script. In your theme folder create a folder called something like 'js'. Create a file in that folder for your javascript. E.g. your-script.js. Add your jQuery script to that file (you don't need <script> tags in a .js fi...
    jQuery 16 views posted 4 years ago by designermedia
  23. FAV

    WordPress Parent Page with Child Page Excerpts

    Snippet for a parent page to list child pages with excerpts.
    PHP 15 views posted 4 years ago by hussong
  24. FAV

    Allow login from specific IP Address

    Allow login from specific IP Address
    PHP 13 views posted 4 years ago by nbpurohit
  25. FAV

    Disable "Add to basket" button for price zero

    Disable "Add to basket" button for price zero
    PHP 10 views posted 4 years ago by nbpurohit
  26. FAV

    WordPress - redirect to the post instead of archive page when search query returns single result

    Courtesy Kevin Chard at WPSnipp.com. Adding this snippet to the functions.php of your wordpress theme will redirect your search to the post automatically when wordpress only returns a single search result.
    PHP saved by 2 people 18 views posted 4 years ago by adambundy
  27. FAV

    Migrate a Wordpress

    Moving a wordpress site for local dev, to staging, to production? This SQL snippet has done the job more often than not. It may not be 100% full proof but it has saved my butt hundreds of times. Please, if you know other tables or enhancements share...
    SQL 11 views posted 4 years ago by brownrl
  28. FAV

    Wordpress add multiple image upload custom field to any post type

    Hi, here i implement multiple image upload custom field to page post type if you want it for another post type just change post type name. Add this following code to your current theme’s function.php file. Go to your pages from wordpress admin a...
    PHP 44 views posted 4 years ago by nbpurohit
  29. FAV

    Add Login / Logout to Primary Menu

    Adds a Logout link to the end of your Primary Navigation is the user is logged in; else adds a Login link to the end of your Primary Navigation.
    PHP 18 views posted 4 years ago by entreprenerds
  30. FAV

    Wordpress: Show all active plugins

    Show a list of active plugins on current site. I use it for diplaying in ManageWP and transfer to documentation
    PHP saved by 2 people 22 views posted 4 years ago by ellegaarddk
« Prev 1 2 3 4 5 ... 50