When I enter the search page , the link is


But at this page the function:

$product_taxonomies = get_the_terms($post->ID, $queried_object->taxonomy)

return null, and I suspect this is the reason causing the following problem:

The problems are :

1) return "67" for the function that getting logo , the_field('default_logo', 'option'), instead of the logo image url

2) the banner is not set, and at the dashboard there seems no related setting

enter image description here

How to fix that? Thanks a lot for helping.

  • I can't see how that snippet is related to your problem - you'll need to post more relevant code if you expect any help. – TheDeadMedic Feb 12 '16 at 12:59
  • You should ask for support from whoever made the theme for you, otherwise you will need to explain much more on how things are supposed to work. – Mark Kaplun Feb 12 '16 at 13:31

This is vague but it seems as though you are getting an ID.

You could use wp_get_attachment_image_src() to get the image source

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.