0

I'm building a WP site using the 'Flexible Theme' form Elegant Themes. The site is currently viewable at www.hatchgallery.co.uk/hatchgallery.

When you click on one of the latest pieces of artwork on the home page (each one is a separate project) I want to be able to provide a link inside the info box. The link should go to the category page for that particular project. The general idea is that the category will be the artists name so clicking on this link will take you to all work by this artist.

I've started with this

<a href="<?php echo esc_url( $project_category_link ); ?>">See More From This Artist</a>

But had no luck in getting it to work, any help?

Scott Eldo
  • 473
  • 11
  • 28
  • Which link on the page is the one you are having problems with? What does `var_dump($project_category_link)` at that location provide? – Mike Brant Jul 03 '13 at 22:53
  • It comes back 'NULL'. I do not have the link on the page, it would be above the 'contact us' and 'full information' links. Just want it to go to whatever category page is applied to that project... – Scott Eldo Jul 03 '13 at 23:00
  • Well then you should show the code where that value is defined, not where you are trying top output it, as that is where the problem lies. – Mike Brant Jul 03 '13 at 23:01
  • My PHP skills are pretty non-existent unfortunately. Is there any other help you can give Mike? – Scott Eldo Jul 03 '13 at 23:04
  • Search through the codebase for other uses of `project_category_link` and see if your usage matches. I really haven't touched Wordpress for years or have no specific experience with that theme, so someone more close to that sort of development may be able to give better advice on usage. – Mike Brant Jul 03 '13 at 23:09
  • Ok, that's a good starting point, thank you Mike. – Scott Eldo Jul 03 '13 at 23:11

0 Answers0