Forum Replies Created
-
AuthorPosts
-
April 4, 2022 at 2:15 am in reply to: How do you add text to the bottom of category and tag archive pages (metro pro) #504950billycoinParticipant
thanks for your help brad
April 3, 2022 at 11:28 am in reply to: How do you add text to the bottom of category and tag archive pages (metro pro) #504946billycoinParticipantHi, i did read this article this morning and it looked to be something that would work, but the problem i have is locating the category.php, tag.php and archive.php with this theme (metro pro)
I was able to find in the genesis parent theme (which they strongly advise to not edit) in genesis/lib/structure/archive.php but this does not look like a regular archive.php or category.php that my limited knowledge of these files remembers. It is full of calls to action and looks highly breakable to insert php code into.
usually with themes i use i can see the category and tag php files in the theme ediotr within wordpress and i could insert the code like this
(image of friends category.php (non genesis theme) using advanced custom fields code)
here is the category/ archiev .php from another theme i use (point theme)
this again would be where i add the code. but the problem i seem to have is locating this with the genesis parent theme and the metro pro theme.
Can you shed more light? please
thank you
April 3, 2022 at 9:55 am in reply to: How do you add text to the bottom of category and tag archive pages (metro pro) #504944billycoinParticipantHi Brad
Thank you for taking the time to try and help me out 🙂
I read your articles and guides, but with my minimal coding knowledge, i was not able to make this work for me. But i do understand from reading your guides that i need to hook into the genesis_before_footer hook, which i can do with simple hooks.
I am able to create a custom field with advanced custom fields plugin - https://www.advancedcustomfields.com/ - to give me a wysiwyg editor on both tag editor and category editor pages within wordpress. I add my content to this editor then add the code from the advanced custom fields documentation page - https://www.advancedcustomfields.com/resources/code-examples/ -
<p><?php the_field('field_name'); ?></p> (replacing 'field_name' with my category or tag name)
also this code which a friend of mine uses and works in his (non genesis)theme in his archive.php file
<p>
<?php echo get_field('extra', 'category_' . $cat);?>
</p>and also i tried this code
<?php
if(get_field('field_name'))
{
echo '<p>' . get_field('field_name') . '</p>';
}?>
and checked the box to execute php on this hook, but nothing showed up. Is there an action or filter i need to add to my functions to show this or let this code execute in that hook?
Also, is there a way to add this code to a archives.php or category.php genesis file if this would work better?, it seems the genesis theme files are a minefield for someone with limited coding knowledge.
lastly, if all else fails, would you suggest paying a wordpress developer, perhaps someone on fiverr? i imagine this a fairly straight forward job for a wp developer?
what are your thoughts
thanks for continued help, i appreciate it -
AuthorPosts