Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter stompfrog

    (@stompfrog)

    Been thinking about this some more. I don’t think the problem is with my SQL skills but rather my understanding of the wordpress databases.

    If I query the term_relationships table for a term_taxonomy_id that represents a category it returns multiple results. A simple example of this is…

    SELECT *
    FROM wp_term_relationships
    WHERE term_taxonomy_id = 99

    However… if I then do the same query with an ID that represents a tag rather than a category I only ever get one result. There seems to be a difference in the way that tag and category data is stored, but I can’t work out what it is.

    Can anyone help?

    Thread Starter stompfrog

    (@stompfrog)

    Why do I always answer my own questions just after I give up and post on a forum…

    Answer for anyone else with this problem is make sure you do not have the following line of code or similar in your sidebar.php… oops!

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
    //sidebar code here
    <?php endif; ?>
    Thread Starter stompfrog

    (@stompfrog)

    Haha, thanks figaro, I had just found it. I wonder why they decided to hide that section away at the bottom when all the others are open by default?

    Thanks again.

    Thread Starter stompfrog

    (@stompfrog)

    Just found it!

    For anyone else having the same problem it is as the bottom of the form generation page accessed by..

    /tools/contact form 7

    Scroll to the bottom of the page and click the small and quite well hidden “show” link next to the messages section.

    Hope this saves someone some time 🙂

Viewing 4 replies - 1 through 4 (of 4 total)