Welcome To Snipplr
Everyone's Recent Snippets Tagged wordpress
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Code snippet that allows the user to be automatically logged in on account creation, this works with s2Member since they allow the user to create their own password.
1
733
posted 14 years ago by oriontimbers
Removes all but the text widget, look them up: /wp-includes/default-widgets.php.
0
815
posted 14 years ago by vagrantradio
Dump it in your functions file and stare at the amazing blank page when you log in!
0
777
posted 14 years ago by vagrantradio
Used this on the vox site to find a custom post type and then assign a variable to get different classes for the output.
0
1231
posted 14 years ago by dallasbpeters
used on: ezpl theme, header.php
just be sure to enqueue for any such scripts BEFORE wp_head(). Otherwise they don't get loaded. That is to say, it's probably best to have wp_head() rigth before </head>.
0
669
posted 14 years ago by mjsiemer
Loads WordPress header for external functions like get_option();
0
844
posted 14 years ago by vagrantradio
For example, when you can't get the post author to shop up using the_author(); it usually means your working outside the loop while that function is meant to work inside the loop.
This is a way around it. (got it from the forums)
0
539
posted 14 years ago by Rembrand
passing php variables to javascript with build-in function 'wp_localize_script'.
1
852
posted 14 years ago by screamwork
Wordpress - 404 problem on physical directories. From the Support Forum.
0
595
posted 14 years ago by kyuumeitai
This will fetch the custom post types, displayed as a list with their respective permalinks.
0
911
posted 14 years ago by ivorpad
Pulling posts from outside wordpress (in the right way!) as a response for this snippet: http://snipplr.com/view/39523/pulling--posts-from-outside-wordpress/
0
1300
posted 14 years ago by bronet
Returns an HTML string of taxonomy terms associated with a post and given taxonomy. Terms are linked to their respective term listing pages.\r\n\r\nThis is for when a custom taxonomy is registered for a custom post type.
2
1109
posted 14 years ago by Jamie
Use this to remove or change the wp-admin footer text. Default is
Thank you for creating with WordPress.
1
746
posted 14 years ago by Farhan
<p>Add this line to "functions.php" in your theme directory to remove RSS feeds specific to categories. The primary blog RSS feed will still be accessible. </p><p>Taken from a post by Hollywood grind on the Wordpress.org forums.</p>
0
811
posted 14 years ago by rgsmith007
This may be necessary to properly add theme support for multiple menus.
0
828
posted 14 years ago by Jamie
To exclude pages from wordpress search results include the following in your theme's functions.php
0
670
posted 14 years ago by myke