I'm stuck and grateful for any help
I have a number of categories and a site 'about' page
I also have 'about pages' for each of the categories (sort of subject intro pages)
The about pages are all in the same category so that the direction arrows link from one to the other though the subjects also have their own post categories
I'm wanting the site about page to have no sidebar and each of the subject's 'about pages' to have a single line sidebar with a 'view posts' link to their respective posts
Below is an example of what I've come up with so far - please don't be horrible, at least I tried!
I'm no coder and I have no particular interest in jelly, custard or blancmange - they're just examples
I hope this makes some sense and thanks in advance for any help
<?php if(is_page('about')) {
elseif(is_page('about jelly')){$category_id = get_cat_ID('jelly');
$category_link = get_category_link($category_id);}
elseif(is_page('about custard')){$category_id = get_cat_ID('custard');
$category_link = get_category_link($category_id);}
elseif(is_page('about blancmange')){$category_id = get_cat_ID('blancmange');
$category_link = get_category_link($category_id);}
} ?>
'<div class="sidebar-float"><br><h3><a href="<?php echo esc_url($category_link) ?>" title="view posts"> view posts ►</a></h3><br></div>'