• Resolved goredefex

    (@goredefex)


    I am having a hard time with the learning curve and finding the proper information to accomplish what I need. I am using WordPress as a separate CMS and the site is not housed within WordPress itself.

    That being said, I have always been accessible to all of the amazing WordPress engine has to offer even from outside and therefore I had built a fairly elaborate search engine using only the simple WordPress search with WP_Query. I know a lot of people complain about it but in all honesty it saved me a lot of time making models and controller just for the simple CRUD of it all.

    Now the problem, I have recently been asked to have my search engine built around relevance. I quickly found this plugin and now I need to figure out how to do more then just the relevanssi_do_query() with simple query_vars. I need to use all of my tax stuff that I was previously using before changing to Relevanssi. I previously would have kept it within the args variable passed into my WP_Query Obj and was doing a simple

    ‘tax_query’ => array(array (‘taxonomy’ => $tax,
    ‘field’ => ‘slug’,
    ‘terms’ => $tax_term->slug,
    )

    within my args.

    I need to figure out how to include my custom taxonomy with custom post type stuff. I have it all indexed and I can see it storing the relevant info in the database, I just can’t seem to get taxonomy information included in my search result objects.

    Whats the best way to accomplish this? I also have already tried clicking the boxes in the admin panel that had my custom taxonomy name, thats how it ended up indexed and in the DB. But I just can’t get it in my return objects as a member var.

    https://wordpress.org/plugins/relevanssi/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mikko Saari

    (@msaari)

    If I understand you correctly, you want to see taxonomy terms in the search results? In that case you need Relevanssi Premium. The free version cannot return taxonomy terms, all the taxonomy stuff there just means that you can search for a taxonomy term and get matching posts. In Premium, you’ll also get the taxonomy term object as well.

    Thread Starter goredefex

    (@goredefex)

    Ok my bad I wasn’t aware. You can delete this post.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Taxing Troubles – Pun Intended’ is closed to new replies.