Skip to content

Allison Tarr

  • Work With Me
  • About
  • Blog
  • Contact

Tutorials / Snippets Archives

WP_Query with Monthly Pagination

WP_Query with Monthly Pagination

This code snippet example uses WP_Query to group event posts by month and adds a pagination that queries the previous and next month’s event results. The...

Read More
WPML Conditional Based on Chosen Language

WPML Conditional Based on Chosen Language

For instances where you want to shift what content is appearing, depending on the WPML’s chosen language in the nav bar.

Read More
Extract one block from post content

Extract one block from post content

For instances where you perhaps want to extract a block out of a typical layout (say a hero when the following content is laid out differently)....

Read More
Add featured image & alt text to WP REST API.

Add featured image & alt text to WP REST API.

When getting data using the REST API from a separate site, this is a great snippet to add the data for post featured images as well...

Read More

Previous

© 2023 Allison Tarr
  • Site Credits
  • Email me
  • Visit my Codepen
  • Visit my Github
  • Visit my Twitter