In my footer I have hard coded the links and would like to link some to there category, I could just copy the full URL to it and paste in the href="" but I would rather call it using php.
My knowledge of WordPress and PHP is little and I have tried searching for something that will do this but none work, my last go used this:
<a href="<?php echo get_permalink( get_page_by_path( 'cooking-sauces' ) ); ?>">Cooking Sauces</a>
and I tried this:
<a href="<?php echo get_permalink( get_page_by_path( 'cooking-sauces')->ID); ?>">Cooking Sauces</a>
but did not work.
So the full URL would be http://woloped.co.uk/blog/products/cooking-sauces/
Please can some one help, many thanks Dave
UPDATE: Could it be called using the SLUG and if yes have is this done please.