Skip to content

Instantly share code, notes, and snippets.

@jeremyjaymes
Created November 13, 2014 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremyjaymes/59fbb68397a6353de9ad to your computer and use it in GitHub Desktop.
Save jeremyjaymes/59fbb68397a6353de9ad to your computer and use it in GitHub Desktop.
Anchor Link from Genesis Custom Post Class
## Using Genesis custom post class to set up anchor links
## See http://jeremyjaymes.com/anchor-links-genesis-custom-post-class
# Step 1 Open first custom query
# i.e. $my-query->the_post();
<div class="person">
<a href="#' . genesis_get_custom_field( '_genesis_custom_post_class' ) . '">Headshot</a>
</div>
# Close loop 1
# Step 2 Open second custom query
<div id="<?php echo genesis_get_custom_field( '_genesis_custom_post_class' ); ?>" class="person-info">
Information, video
</div>
# Close loop 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment