I'm trying to build a home page of a site whose organisation is based on categories.
So I have three articles from each category - title, or titles and excerpts and I want a link to each category's archive - with "see all the articles"" or something.
I'm not good at PHP - I'm more of a copier and paster ! I found this in the codex :
<?php $category_id = get_cat_ID( 'My Category' ); $category_link = get_category_link( $category_id );?> <a href="<?php echo $category_link; ?>" title="My Category">See all the articles</a>
This works perfectly with the first instance, but I get "Catchable error... for the second and any subsequent uses - I try changing the names of the variables, but that doesn't change anything.
Why is this happening, and what should I do so it will work ? Please keep explanations easy to understand for the PHP retarded !