Code Snippets tagged "php"

, Breadcrumbs function

Source: Dimox Place in functions.php, call in your theme with dimox_breadcrumbs()

, , Custom Comment Callback

, Improve UX when commenting in threads

Place this snippet in functions.php, and when someone clicks ‘reply,’ the comment Read More

, , Attach Styles or Scripts to Plugin

Place this code anywhere in your plugin php if you need to Read More

, Plugin Comment

Add to the top of your plugin’s main PHP file

, , Improve Excerpts

Add to functions.php to make the default the_excerpt() better!

, Activate Hidden WordPress Features

Place any of these lines of code in your functions.php file as Read More

, , , Register Sidebars

Adds widget areas to your site. Paste the code in functions.php

, , Separate comment count from pings

Add this to functions.php to prevent pingbacks and trackbacks from showing up Read More

login form / logout

Use this anywhere you want a login form that turns into a Read More

, Widget API example

includes the 4 basic functions for setting up a widget in a Read More