Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged wordpress



1 ... 9 10 11 12 13 ... 42
Add current class to single posts in Wordpres wp_nav_menu by adding a filter
0 1804 posted 14 years ago by inflightatnight
1 1386 posted 14 years ago by travishines
Remove unnecessary code from the default WordPress header.
0 1319 posted 14 years ago by Huskie
This creates a theme options page for a wordpress theme.
0 1204 posted 14 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 1525 posted 14 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 1783 posted 14 years ago by kingkool68
Adds a class to the standard classes in Images in Posts/Pages
0 1283 posted 14 years ago by maxxscho
Remove the Attributes in <img> - Tags in the Post/Page Content
0 1112 posted 14 years ago by maxxscho
0 1081 posted 14 years ago by maxxscho
Show wp categories in drop down list like ...
0 1813 posted 14 years ago by webtechdev
0 1224 posted 14 years ago by innerstorm
To find the count of number of files in a directory, use this.
0 1013 posted 14 years ago by taqin
Codigo base de un plugin para wordpress
0 1140 posted 14 years ago by foxnetorka
Codigo base para un widget en Wordpress
0 1200 posted 14 years ago by foxnetorka
Add the following line to code to your theme's functions.php file
0 1071 posted 14 years ago by priyankvira
Add the following lines of code to your theme's function.php file.
0 1107 posted 14 years ago by priyankvira
Add the line of code to your theme's function.php file
0 1287 posted 14 years ago by priyankvira
Add the following file to your theme's function.php file
0 1292 posted 14 years ago by priyankvira
0 3915 posted 14 years ago by zvineyard
Simple function - just place it in your theme's functions.php file, save, and you're good to go. If an image in your content is missing the alt tag, it adds that posts title as the alt tag for the image. It's been recommended to me that I shouldn'...
0 2063 posted 14 years ago by RainyDayMedia
Add to bottom of your theme's functions.php file
0 1048 posted 14 years ago by RainyDayMedia
Once we login and are in the backend of WordPress, there is another small logo of WordPress displayed on top. It’s small but if you wish to change it, then add below code to the same functions.php file we created in above step.
0 1098 posted 14 years ago by jamiebrwr
When a client wants to access the WordPress admin, the first thing they will notice is the login page with a WordPress logo. Wouldn’t it be better if this page had the logo of your client’s company or maybe yours? There are many simpler ways to d...
0 1274 posted 14 years ago by jamiebrwr
Change the small logo at the top of the dashboard: Just add to the bottom of your theme's functions.php file
0 1170 posted 14 years ago by RainyDayMedia
1 ... 9 10 11 12 13 ... 42