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 1235 posted 15 years ago by levinet
Returns the post or page id using the name/slug of a page.
2 3632 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 1006 posted 15 years ago by oriontimbers
Removes all but the text widget, look them up: /wp-includes/default-widgets.php.
0 1132 posted 15 years ago by vagrantradio
Dump it in your functions file and stare at the amazing blank page when you log in!
0 1085 posted 15 years ago by vagrantradio
Display any rss feed as html in wordpress
0 1003 posted 15 years ago by richerimage
0 704 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 1662 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 958 posted 15 years ago by mjsiemer
Loads WordPress header for external functions like get_option();
0 1098 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 783 posted 15 years ago by Rembrand
0 849 posted 15 years ago by fatihturan
passing php variables to javascript with build-in function 'wp_localize_script'.
1 1170 posted 15 years ago by screamwork
Wordpress - 404 problem on physical directories. From the Support Forum.
0 869 posted 15 years ago by kyuumeitai
This will fetch the custom post types, displayed as a list with their respective permalinks.
0 1228 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 1674 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 1454 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 1048 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 1119 posted 15 years ago by rgsmith007
This may be necessary to properly add theme support for multiple menus.
0 1143 posted 15 years ago by Jamie
To exclude pages from wordpress search results include the following in your theme's functions.php
0 940 posted 15 years ago by myke
1 ... 30 31 32 33 34 ... 47