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 1499 posted 15 years ago by levinet
Returns the post or page id using the name/slug of a page.
2 4192 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 1175 posted 15 years ago by oriontimbers
Removes all but the text widget, look them up: /wp-includes/default-widgets.php.
0 1325 posted 15 years ago by vagrantradio
Dump it in your functions file and stare at the amazing blank page when you log in!
0 1302 posted 15 years ago by vagrantradio
Display any rss feed as html in wordpress
0 1158 posted 15 years ago by richerimage
0 812 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 2153 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 1137 posted 15 years ago by mjsiemer
Loads WordPress header for external functions like get_option();
0 1347 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 911 posted 15 years ago by Rembrand
0 995 posted 15 years ago by fatihturan
passing php variables to javascript with build-in function 'wp_localize_script'.
1 1381 posted 15 years ago by screamwork
Wordpress - 404 problem on physical directories. From the Support Forum.
0 1004 posted 15 years ago by kyuumeitai
This will fetch the custom post types, displayed as a list with their respective permalinks.
0 1650 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 1920 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 1847 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 1212 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 1335 posted 15 years ago by rgsmith007
This may be necessary to properly add theme support for multiple menus.
0 1359 posted 15 years ago by Jamie
To exclude pages from wordpress search results include the following in your theme's functions.php
0 1067 posted 15 years ago by myke
Used these styles to comply with default wordpress WYSIWYG class names
0 1043 posted 15 years ago by myke
1 ... 30 31 32 33 34 ... 47