Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged wordpress



1 ... 9 10 11 12 13 ... 43
Add current class to single posts in Wordpres wp_nav_menu by adding a filter
0 914 posted 12 years ago by inflightatnight
1 827 posted 12 years ago by travishines
Remove unnecessary code from the default WordPress header.
0 681 posted 12 years ago by Huskie
0 539 posted 12 years ago by florent
0 763 posted 12 years ago by florent
0 707 posted 12 years ago by florent
0 553 posted 12 years ago by florent
0 507 posted 12 years ago by florent
0 454 posted 12 years ago by florent
0 585 posted 12 years ago by florent
0 563 posted 12 years ago by florent
0 580 posted 12 years ago by florent
This creates a theme options page for a wordpress theme.
0 637 posted 12 years ago by ddavidd
Place at the top of your header.php to redirect visitors who are not logged-in to the Wordpress admin. I use this to redirect to a simple HTML 'coming soon' page while sites are in development.
1 701 posted 12 years ago by adambundy
1. Get Posts however you see fit 2. Loop through the posts getting the terms from taxonomies and add them to the Post object 3. Sort the Array of Post Objects by the property you want them sorted by using sort_on_field()
0 1096 posted 12 years ago by kingkool68
1 ... 9 10 11 12 13 ... 43