Welcome To Snipplr


Everyone's Recent Snippets Tagged wordpress



1 ... 30 31 32 33 34 ... 47
Returns the page object of the parent of the current page.
0 1372 posted 15 years ago by levinet
Returns the post or page id using the name/slug of a page.
2 4006 posted 15 years ago by levinet
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 1086 posted 15 years ago by oriontimbers
Removes all but the text widget, look them up: /wp-includes/default-widgets.php.
0 1228 posted 15 years ago by vagrantradio
Dump it in your functions file and stare at the amazing blank page when you log in!
0 1201 posted 15 years ago by vagrantradio
Display any rss feed as html in wordpress
0 1085 posted 15 years ago by richerimage
0 760 posted 15 years ago by neverdark
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 1945 posted 15 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 1040 posted 15 years ago by mjsiemer
Loads WordPress header for external functions like get_option();
0 1181 posted 15 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 838 posted 15 years ago by Rembrand
0 910 posted 15 years ago by fatihturan
passing php variables to javascript with build-in function 'wp_localize_script'.
1 1288 posted 15 years ago by screamwork
Wordpress - 404 problem on physical directories. From the Support Forum.
0 927 posted 15 years ago by kyuumeitai
This will fetch the custom post types, displayed as a list with their respective permalinks.
0 1376 posted 15 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 1800 posted 15 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 1703 posted 15 years ago by Jamie
Use this to remove or change the wp-admin footer text. Default is Thank you for creating with WordPress.
1 1106 posted 15 years ago by Farhan
<p>Add this line to &quot;functions.php&quot; 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 1219 posted 15 years ago by rgsmith007
This may be necessary to properly add theme support for multiple menus.
0 1247 posted 15 years ago by Jamie
To exclude pages from wordpress search results include the following in your theme's functions.php
0 991 posted 15 years ago by myke
Used these styles to comply with default wordpress WYSIWYG class names
0 939 posted 15 years ago by myke
1 ... 30 31 32 33 34 ... 47