Welcome To Snipplr


Everyone's Recent Snippets Tagged wordpress



Add the code below to change the Home & Site URL that is configured in the database (wp-options table) by WordPress. Whenever you copy/move a site to a new hosting and the URL has changed you can use the code below to fix any strange redirects that m...
0 243 posted 6 years ago by 108Bits
Simply paste the following snippet of code into your theme’s functions.php file and adjust the CSS on line 4 as needed.
0 282 posted 6 years ago by chrisaiv
Thanks to Tom McFarlin for this. http://tommcfarlin.com/wordpress-post-exists-by-id/#more-30264
1 655 posted 6 years ago by adambundy
Remove Wordpress empty paragraphs form the_content() function.
0 448 posted 6 years ago by razvanstavila
Add custom header style for Admin
0 249 posted 6 years ago by razvanstavila
Add a css file to style the visual editor to resemble the theme style.
1 274 posted 6 years ago by razvanstavila
Add page name slug to Wordpress body class array.
0 266 posted 6 years ago by razvanstavila
Add Google Lato Font link from Google Fonts to your website. It will add to your admin area also.
0 243 posted 6 years ago by razvanstavila
Generate The Tiny URL to add to any post
0 178 posted 6 years ago by daprela
FME has designed efficient Canvas Drawing Plugin for WordPress that enables users to draw canvas online on separate paint book by utilizing basic drawing tools like brush, pencil, etc. This WordPress Plugin will create two additional pages on your we...
0 234 posted 6 years ago by alastarmason1
A custom widget area for wordpress.
1 230 posted 7 years ago by JamesAbels
Divide wordpress posts from one category into two columns.
1 263 posted 7 years ago by fedek6
This snippet shows you how to get previous and next post in category URL.
0 276 posted 7 years ago by fedek6
Additional option for Wordpress post (year in this case). You can get it's content in template file by: `<?php>ID, 'year', true ); ?>`
1 193 posted 7 years ago by fedek6
This is template for adding custom settings in Wordpress (using settings API).
1 229 posted 7 years ago by fedek6
Simulates a click on a page with the name you put in the parameter in the onclick function.
1 349 posted 7 years ago by Reiff
#Wordpress Debug Info ##Find out basic information about your WordPress installation and server environment
2 173 posted 7 years ago by gregdbarnes
add to functions.php
1 180 posted 7 years ago by gabbo
This uses the timthumb script saved as sized.php in the theme directory
1 236 posted 7 years ago by bitsculptor
This shortcode was tested with The Events Calendar version 3.3.1 Usage: [upcoming_events limit="6"]
0 228 posted 7 years ago by crypticsoft
http://bueltge.de/wordpress-feeds-deaktivieren/794/
1 265 posted 7 years ago by gabbo
Positioning the normal metaboxes in WordPress admin (like Excerpt, Author etc.) before the WYSIWYG editor
1 165 posted 7 years ago by tkujawa
Gets all of a Wordpress post meta data in an array without specifying a key
1 220 posted 7 years ago by web_la
0 216 posted 7 years ago by santamartastudio
Für functions.php
1 287 posted 7 years ago by gabbo
shows list of cpt for example on archive page when wpml is installed. if particular post has no translation, it shows it in default language
0 198 posted 7 years ago by kkarpieszuk
Instructions: WordPress menus and sidebars/widgets are really powerful modules, but unfortunately it requires Admin user role to edit them. If you would like to allow users with Editor user role to edit any of the widgets or menus, just paste t...
2 251 posted 7 years ago by lromak
To be used in WordPress template. List full taxonomy, or only custom post type associated with the post. Examples include a linking or non linking list.
2 249 posted 7 years ago by lromak
To insert custom loop of post attachments as images (at core or custom size) linked not to full size image but custom-configured (or core) size.
2 300 posted 7 years ago by adambundy
How to change user password for a wordpress site.
0 243 posted 7 years ago by keidash