Forum Replies Created
-
AuthorPosts
-
VikramMember
Yes that solution works for me. Is there an issue with this solution that I can't see?
Vikram
VikramMemberThank you Ryan for pointing me in the right direction.
This is the solution that I came up with:
In the functions.php, I added a custom function:
add_action('genesis_meta', 'custom_seo_description'); function custom_seo_description() { if(is_singular('post')) { echo '<meta name="description" content="' . get_field('project_summary') . '" />'; } else if(is_archive()) { echo '<meta name="description" content="' . category_description() . '" />'; } else if(is_singular('competition')) { echo '<meta name="description" content="' . get_the_title() . '" />'; } }
VikramMemberHey Chris,
I can't seem to find anything about a genesis_post_categories_shortcode filter?
Vikram
VikramMemberSorry, have figured it out.
I added the filter:
add_filter( 'the_content', 'my_content' );
And within the function my_content I added the custom fields.
VikramMemberAhh. Brilliant! Thank you very much.
The documentation that comes with that theme should be updated to reflect this. Currently it says:
How to set up the navigation menu
In the eleven40 theme, the default menu areas are not used in the demo. You may disable the Primary menu under Genesis -> Settings -> Navigation.Again, thank you!
-
AuthorPosts