This code enables you to add a button with a unique link after entries on archive pages in genesis like you see in this example :
The code adds the button after the content, content limit or excerpt on all archive pages. The link for the button is unique.
- Copy & paste the PHP code to the end of your child themes functions file.
- Add a new custom field on any Edit Post screen using link as the field name and the link URL as the value like you see in the following screenshot :
You have 2 choices :
- You can change the genesis_entry_content hook to another hook like genesis_entry_footer to change the position the button displays after the entry.
- Or, you can change the 3rd parameter from 15 to another value to control the timing of the execution of the hook.