No Frills Pdf Button

Read More

Display List of Related Pages from Hierarchy in Sidebar

Linked pages related to the current page. If is root page shows itself as title with all children below. Else shows immediate parent as title with all pages at its level below (depth can be changed, with -1 showing all without hierarchy).

Read More

Get Image ID from Source

Finds the image id given the source. Or returns false.

Read More

Multi-site Menu (experimental)

Starting in 4.7 using REST API – This is JumpStart specific. On “host” site:

On “receiving” site:

JQuery to add current classes (coming soon):

Read More

Display Posts by Category [shortcode]

Suppose we want to display a list of post links in the sidebar that are in “child” categories of the “News” category (ie “Boating News” followed by its posts, “Fishing News” followed by its posts, in this case from the last 90 days because of the filter). We could include this code in functions.php:


Read More

Register Custom Post Type and Taxonomy

This is the standard code to register (create) a custom post type. For more detailed information on these and other options check out the WordPress Codex page.

Notice “hierarchical” is set to true. This will cause the taxonomy to behave like a category. False or omitted causes the taxonomy to behave like a tag.

Read More

Sticky Posts in Category Pages

How do we get sticky posts to “stick” to category pages? The answer to this question turned out to be much more involved than I had imaged. After scouring the internet/codex I managed to found this solution.

Read More

Check for Children

Want to be able to use one condition which includes or excludes pages based on weather they are children of a specific page? Add this code to functions.php:

then use this in your page template:

Read More