Welcome To Snipplr


Everyone's Recent Snippets Tagged wordpress



One thing that can go wrong in WordPress magazine themes is when users include too many words before the more tag.
0 64 posted 5 years ago by chrisaiv
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 64 posted 5 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 94 posted 5 years ago by chrisaiv
Thanks to Tom McFarlin for this. http://tommcfarlin.com/wordpress-post-exists-by-id/#more-30264
1 243 posted 5 years ago by adambundy
Remove Wordpress empty paragraphs form the_content() function.
0 120 posted 5 years ago by razvanstavila
Add custom header style for Admin
0 73 posted 5 years ago by razvanstavila
Add a css file to style the visual editor to resemble the theme style.
1 85 posted 5 years ago by razvanstavila
Add page name slug to Wordpress body class array.
0 76 posted 5 years ago by razvanstavila
Add Google Lato Font link from Google Fonts to your website. It will add to your admin area also.
0 75 posted 5 years ago by razvanstavila
Generate The Tiny URL to add to any post
0 47 posted 5 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 70 posted 5 years ago by alastarmason1
A custom widget area for wordpress.
1 66 posted 6 years ago by JamesAbels
Divide wordpress posts from one category into two columns.
1 78 posted 6 years ago by fedek6
This snippet shows you how to get previous and next post in category URL.
0 79 posted 6 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 46 posted 6 years ago by fedek6
This is template for adding custom settings in Wordpress (using settings API).
1 59 posted 6 years ago by fedek6
Simulates a click on a page with the name you put in the parameter in the onclick function.
1 100 posted 6 years ago by Reiff
#Wordpress Debug Info ##Find out basic information about your WordPress installation and server environment
2 53 posted 6 years ago by gregdbarnes
add to functions.php
1 42 posted 6 years ago by gabbo
This uses the timthumb script saved as sized.php in the theme directory
1 65 posted 6 years ago by bitsculptor
This shortcode was tested with The Events Calendar version 3.3.1 Usage: [upcoming_events limit="6"]
0 60 posted 6 years ago by crypticsoft
http://bueltge.de/wordpress-feeds-deaktivieren/794/
1 61 posted 6 years ago by gabbo
Positioning the normal metaboxes in WordPress admin (like Excerpt, Author etc.) before the WYSIWYG editor
1 35 posted 6 years ago by tkujawa
Gets all of a Wordpress post meta data in an array without specifying a key
1 63 posted 6 years ago by web_la
Für functions.php
1 98 posted 6 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 54 posted 6 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 77 posted 6 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 83 posted 6 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 83 posted 6 years ago by adambundy