Welcome To Snipplr
Everyone's Recent Snippets Tagged wordpress
- All /
 - JavaScript /
 - HTML /
 - PHP /
 - CSS /
 - Ruby /
 - Objective C
 
A regular expression for removing <br> and <br> (case insensitive) between HTML elements if there is no content between the HTML elements.  It was written for fixing extra line spaces created in a WordPress visual editor after the content of the visu...
        
        
        
            0 
        
        
            2205 
        
                    posted 13 years ago by pumpkinthehead
            Useful for adding Custom Post types to navigation this will list all custom post type posts
        
        
        
            1 
        
        
            2334 
        
                    posted 13 years ago by i-am-andy
            I need this function all too often and figured I'd share it. Limit the_content() by word limit by using built in WordPress functions.
        
        
        
            0 
        
        
            2515 
        
                    posted 13 years ago by crypticsoft
            Here is a quick example on how to generate your own portfolio with filtering based on a taxonomy (in this case 'Solutions').
        
        
        
            0 
        
        
            1506 
        
                    posted 13 years ago by crypticsoft
            A little function to add custom styles to the tinymce editor in wordpress.
        
        
        
            1 
        
        
            1280 
        
                    posted 13 years ago by bitsculptor
            For more parameters: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
        
        
        
            0 
        
        
            957 
        
                    posted 13 years ago by thescottlee
            - Use custom image size within template (including if exist)
- Add a class name to a custom image size
        
        
        
            0 
        
        
            1448 
        
                    posted 13 years ago by thescottlee
            Note: This also uses a flat file to cache the results, be sure to also upload the 'rss_cache.txt' file. 
Usage:
<?php>
        
        
        
            0 
        
        
            1453 
        
                    posted 13 years ago by crypticsoft
            A function to query the 10 most recent posts on a multisite WordPress installation
        
        
        
            0 
        
        
            2431 
        
                    posted 13 years ago by chasecrawford
            Add this snippet to the functions.php to add 'Donate' Button on your Wordpress Website.
        
        
        
            0 
        
        
            1381 
        
                    posted 13 years ago by planetabhi
            Add this snippet to the functions.php to render your twitter followers count.
Replace 'planetabhi' with your twitter screen name
        
        
        
            0 
        
        
            1480 
        
                    posted 13 years ago by planetabhi
            Add this snippet to the functions.php of your wordpress theme. This will add a select menu with an automatically generated list of your shortcodes for your pages and posts.
        
        
        
            1 
        
        
            1127 
        
                    posted 13 years ago by planetabhi
            Just paste the following snippet into your functions.php file and save it.
        
        
        
            0 
        
        
            1313 
        
                    posted 13 years ago by planetabhi
            For when you really just need a short description field along with a title for your slideshows. Just drop this into the functions.php and meteor-slideshow.php in the theme folder.
        
        
        
            0 
        
        
            1868 
        
                    posted 13 years ago by crypticsoft
            Here is a simple filter to automatically add a class attribute like widget-order-1 to all widgets within sidebars (from konstruktors.com)
        
        
        
            0 
        
        
            1889 
        
                    posted 13 years ago by lashon
            Takes titles from a certain category and lists them in an unordered list.
        
        
        
            0 
        
        
            1221 
        
                    posted 13 years ago by thewickedchemist
            WordPress test post, for theme development, style testing etc.
        
        
        
            0 
        
        
            1284 
        
                    posted 13 years ago by lunuledesign
            This code allows the upload of files with extensions usually forbidden in wordpress
        
        
        
            0 
        
        
            1085 
        
                    posted 13 years ago by scienzedellevanghe
            Adding a file named "template-homepage.php" and adding this code inside it should essentially create a page template named "Scrolling Homepage" to your theme, which is useful in some customized landing page situations where you want another page as t...
        
        
        
            0 
        
        
            1017 
        
                    posted 13 years ago by Makedesign