Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix wp_get_object_terms return zero

Discussion in 'Misc WordPress Requests' started by nedernasser, Feb 8, 2018.

  1. nedernasser


    wp_get_object_terms return zero, by nedernasser

    I’m having a strange bug and I wonder if anyone has ever had it. I’ve developed the whole site on my laptop and it’s all working properly. I did the project publishing for my hosting server and almost everything worked correctly. I one of the page, in the gallery, the wp_get_object_terms method is not returning the terms of the object. I ran the test locally and this method returns a tag for each image, but on the server it does not return any tags. Does anyone know what might be happening?

    I realized that this wp_get_object_terms method is the problem because it retrieves the image tag and inserts it as class into each gallery image so that the gallery filter works correctly.

    wp_get_object_terms return zero

Share This Page

Monarch Social Sharing Plugin