Random Posts Shortcode
Adds a [random_posts] shortcode that lists a few random posts, optionally from chosen categories or another post type, without running a slow random database query on every page view.
Snippet Library
3,040 free snippets from the WPIDE team and the community. Copy the code, or add any snippet to your site in one click with WPIDE.
Adds a [random_posts] shortcode that lists a few random posts, optionally from chosen categories or another post type, without running a slow random database query on every page view.
Registers a [reading_time] shortcode that shows an estimated reading time such as "4 min read" for the current post.
Adds a [wpide_recent_comments] shortcode that lists the latest approved comments with the commenter's name, post title and a short excerpt.
Adds a [wpide_network_posts] shortcode that shows the newest posts from every public site on the network in one list, with the site name next to each post.
Adds a [recent_posts] shortcode that lists your latest posts anywhere, optionally from one category and with dates.
Adds a [recently_updated] shortcode that lists the posts most recently revised, with the date they were updated, to show readers that older guides are being kept fresh.
Remembers the products each visitor looks at and adds a [wpide_recently_viewed] shortcode that displays them as a product grid.
Adds prep and cook times, servings, calories, ingredients and steps to recipes, plus a [recipe_card] shortcode that prints a tidy recipe card.
Changes how long WordPress caches feeds fetched from other sites for the RSS widget and feed shortcodes, which is 12 hours by default.
A ready-to-edit example that registers an ACF field group (subtitle, summary and call-to-action link) for posts in PHP, so the fields are version-controlled and cannot be changed in the admin.
Creates additional widget areas, such as a shop sidebar or a blog sidebar, that you can fill under Appearance > Widgets and place with a shortcode or theme hook.
Scans every uploaded file that is not a PHP file for hidden PHP code (such as an image with a PHP payload) and refuses the upload if any is found.
Adds a surcharge to the order when the shipping postcode is in a remote area you list, such as islands or highland regions that carriers charge extra for.
Cleans up the empty paragraphs and stray line breaks left behind by pasted text, old page builders and shortcodes, so spacing stays even.
Stops Easy Digital Downloads adding a purchase button below every download's content, for pages where you place the button yourself with a block or shortcode.
Adds a "wp rename-shortcode" command that changes every use of one shortcode tag to another in posts and pages, attributes and closing tags included, useful when switching plugins.
Changes the order of checkout address fields, for example country first and postcode before city, to match how addresses are written in your market.
Inserts your ad code after every 350 words of a post, at paragraph boundaries, so long articles earn more without manual placement.
Prevents two posts from sharing the same value in a field, such as a product code, membership number or reference ID.
Adds an "Invite code" field to the registration form and only lets people sign up with one of your codes, each with an optional limit on how many times it can be used.
Adds [layout_columns] and [layout_col] shortcodes that place content side by side in two, three or four columns and stack them on phones, for classic editor content and page builders without a columns tool.
Makes chosen coupon codes work only for customers with specific roles, such as staff discount codes or trade-only promotions.
Hides the "Code editor" mode of the block editor from everyone except administrators, so other users only edit visually.
Lets editors use shortcodes in ACF text and text area fields, which ACF otherwise prints as plain text.