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 377 posted 7 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 410 posted 7 years ago by chrisaiv
Thanks to Tom McFarlin for this. http://tommcfarlin.com/wordpress-post-exists-by-id/#more-30264
1 901 posted 7 years ago by adambundy
Remove Wordpress empty paragraphs form the_content() function.
0 999 posted 7 years ago by razvanstavila
Add custom header style for Admin
0 373 posted 7 years ago by razvanstavila
Add a css file to style the visual editor to resemble the theme style.
1 408 posted 7 years ago by razvanstavila
Add page name slug to Wordpress body class array.
0 398 posted 7 years ago by razvanstavila
Add Google Lato Font link from Google Fonts to your website. It will add to your admin area also.
0 363 posted 7 years ago by razvanstavila
Generate The Tiny URL to add to any post
0 331 posted 7 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 343 posted 7 years ago by alastarmason1
A custom widget area for wordpress.
1 316 posted 7 years ago by JamesAbels
Divide wordpress posts from one category into two columns.
1 393 posted 7 years ago by fedek6
This snippet shows you how to get previous and next post in category URL.
0 409 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 278 posted 7 years ago by fedek6
This is template for adding custom settings in Wordpress (using settings API).
1 344 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 544 posted 7 years ago by Reiff
#Wordpress Debug Info ##Find out basic information about your WordPress installation and server environment
2 257 posted 7 years ago by gregdbarnes
add to functions.php
1 282 posted 7 years ago by gabbo
This uses the timthumb script saved as sized.php in the theme directory
1 349 posted 7 years ago by bitsculptor
This shortcode was tested with The Events Calendar version 3.3.1 Usage: [upcoming_events limit="6"]
0 332 posted 7 years ago by crypticsoft
http://bueltge.de/wordpress-feeds-deaktivieren/794/
1 390 posted 7 years ago by gabbo
Positioning the normal metaboxes in WordPress admin (like Excerpt, Author etc.) before the WYSIWYG editor
1 249 posted 7 years ago by tkujawa
Gets all of a Wordpress post meta data in an array without specifying a key
1 316 posted 8 years ago by web_la
0 326 posted 8 years ago by santamartastudio
Für functions.php
1 398 posted 8 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 326 posted 8 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 371 posted 8 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 366 posted 8 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 426 posted 8 years ago by adambundy
How to change user password for a wordpress site.
0 378 posted 8 years ago by keidash