Forum Replies Created
-
in reply to: Header after selecting Category in Blog
OK. I made some more progress and have enabled the header to show the category name by adding the following code block to page_header.php:
if(is_category()){
global $wp_query;
$cat_obj = $wp_query->get_queried_object();
$title = __($cat_obj->name, ‘codeless’);
$title = $cat_obj->name;
}
I just have one more question…how can I achieve the same functionality for Archives. That is if I select a certain month-year combination to have that month-year combination displayed in the header.
Thanks,
Leo
in reply to: Header after selecting Category in BlogFYI. I partially resolved the missing header issue because I noticed that archive.php was calling the following file:
<?php get_template_part(‘template_inc/page_header’); ?>
which does not exist in my directory structure.
I’ve temporarily changed the reference to the following instead:
<?php get_template_part(‘includes/view/page_header’); ?>
which gets rid of the missing header problem.
But I would like the header to reflect the selected category. Can you tell me if there is a way to do that?
Thank you,
Leo
in reply to: Tags for portfolio itemsThis reply has been marked as private.in reply to: Setting default category for portfolio pageThis reply has been marked as private.in reply to: Setting default category for portfolio pageSorry. Could you give me some more detail like a code snippet to get me started?
Thank you,
Leo
in reply to: Adding Project Details to Portfolio PagePlease ignore. I figured it out. Thx.