Title: Query help
Last modified: August 21, 2016

---

# Query help

 *  [Giray](https://wordpress.org/support/users/giray/)
 * (@giray)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/query-help-3/)
 * Hi all.
 * Sorry but I can’t seem to write a query for Ditty Posts Ticker. Query master 
   I am not 🙁
    It’s fairly simple.
 * I need to display category A **and** category B but **not** posts 15 and 30.
 * Thanks!!
 * [https://wordpress.org/plugins/ditty-news-ticker/](https://wordpress.org/plugins/ditty-news-ticker/)

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

 *  Plugin Author [metaphorcreations](https://wordpress.org/support/users/metaphorcreations/)
 * (@metaphorcreations)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/query-help-3/#post-4763995)
 * No problem. You’ll need to create 2 lines for your query args (use the + button
   to create a second one).
 * #1
    Parameter = `category_name` Value = `a,b` _*Note: The value is the slugs 
   of your categories separated by commas [http://codex.wordpress.org/Class\_Reference/WP\_Query#Category\_Parameters](http://codex.wordpress.org/Class_Reference/WP_Query#Category_Parameters)_
 * #2
    Parameter = `post__not_in` Value = `15,30` Create Array = Make the sure the`
   Split list` checkbox is checked _*Note: The Split list converts a comma separated
   list into an array, which is required for the post\_\_not\_in parameter [http://codex.wordpress.org/Class\_Reference/WP\_Query#Post\_.26\_Page\_Parameters](http://codex.wordpress.org/Class_Reference/WP_Query#Post_.26_Page_Parameters)_
 * This should work for you, but let me know if you still have problems or questions.
 *  Thread Starter [Giray](https://wordpress.org/support/users/giray/)
 * (@giray)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/query-help-3/#post-4764104)
 * Thanks, really appreciated, but I’m not sure how to write up the actual query.
   I’ll try but chances are I’ll fail 😉
 *  Plugin Author [metaphorcreations](https://wordpress.org/support/users/metaphorcreations/)
 * (@metaphorcreations)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/query-help-3/#post-4764106)
 * You don’t need to write the actual query, the plugin does that automatically.
 * You just need to use the fields supplied by the Ditty Posts Ticker (under the
   Advanced options) and add the values listed above. Simply copy/paste “category_name”
   into the Parameter field, and copy/paste “a,b” into the Value. Then select the
   + button to create another line and use the values mentioned in step #2 above.
 * … unless I’m completely misunderstanding what you are trying to do.
 *  Thread Starter [Giray](https://wordpress.org/support/users/giray/)
 * (@giray)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/query-help-3/#post-4764107)
 * I’ve configured the back end like this. Is this right? Doesn’t work. Post 3219
   still appears.
 * [https://dl.dropboxusercontent.com/u/33443100/screenshot_0360.png](https://dl.dropboxusercontent.com/u/33443100/screenshot_0360.png)
 * **edit** hi, just realized you don’t need to write the query, but, as per the
   screenshot, still can’t get it right 🙁 Sorry.
 * BTW, love this ticker!!
 *  Plugin Author [metaphorcreations](https://wordpress.org/support/users/metaphorcreations/)
 * (@metaphorcreations)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/query-help-3/#post-4764108)
 * 1. You need to check the box labeled “Split list” for your “post__not__in” parameter.
   
   2. Delete the Taxonomy args. You do not need to use those. 3. Add another Query
   arg by pressing the + to the right of the first query arg 4. In the second line
   that appears add “cat” as the Parameter (since it looks like you are using category
   IDs) and add “7,70” as the Value. Do not check the Split list checkbox for this
   one.
 *  Thread Starter [Giray](https://wordpress.org/support/users/giray/)
 * (@giray)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/query-help-3/#post-4764109)
 * Got it. Works. Great. Thanks.
    +1 for the plugin and the developer’s quick response.
   Much appreciated.
 *  [mckinleymedia](https://wordpress.org/support/users/mckinleymedia/)
 * (@mckinleymedia)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/query-help-3/#post-4764308)
 * +1 – This worked great! Thanks! You made my client update quick and easy. I also
   like your module.

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

The topic ‘Query help’ is closed to new replies.

 * ![](https://ps.w.org/ditty-news-ticker/assets/icon.svg?rev=2650696)
 * [Ditty – Responsive News Tickers, Sliders, and Lists](https://wordpress.org/plugins/ditty-news-ticker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ditty-news-ticker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ditty-news-ticker/)
 * [Active Topics](https://wordpress.org/support/plugin/ditty-news-ticker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ditty-news-ticker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ditty-news-ticker/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [mckinleymedia](https://wordpress.org/support/users/mckinleymedia/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/query-help-3/#post-4764308)
 * Status: not resolved