Support » Plugin: Testimonials by WooThemes » How do i query by testimonial Category

Viewing 1 replies (of 1 total)
  • I’m not sure why you would use a custom field for a category rather then use the default category.

    You can adjust the query used by filtering the query. Here is a snippet you can expand on to get your desired result.

    Currently that snippet just takes the testimonials and displays them in a random order. You can remove the “‘orderby’ => ‘rand’,” piece and edit the “‘category’ => 0” section to use your category ID. So if you using the default categories with the testimonials and the cat ID is 42 you simply change ‘category’ => 0 to ‘category’ => 42.

    Hope that helps / works.

Viewing 1 replies (of 1 total)
  • The topic ‘How do i query by testimonial Category’ is closed to new replies.