Syntax problem with wordpress shortcode -- 2

I am trying to create a new shortcode for my wordpress site...I am basing it off another shortcode....

It is applied within the page as the following

[faq category=misc]

The category will determine which category will be show in the post loop, but I'm not sure how to implement it correctly.

This is some of what I have:

function shortcode_faq($atts, $content = null) {


'category' => '',

), $atts));

ob_start(); ?>

<div class="container_demo">

<!-- Accordion begin -->

<div class="accordion_example2">

<?php $loop = new WP_Query( array( 'post_type' => 'faq', 'faq_type' => '?????', 'posts_per_page' => -1 ) ); ?>

The question marks are what I'm not sure of, what to put there to pass along the category.

This is all I need. Simple for expert. Should take five minutes. Quick and good feedback for selected freelancer.

Skills: MySQL, PHP, Website Design, WordPress

See more: show off freelancer, problem with freelancer, freelancer problem, freelancer in faq, freelancer how to extract, faq freelancer, posts per month query wordpress, wordpress sort posts query posts, sql query posts category wordpress, examples wordpress query posts, wordpress query posts based date, wordpress query posts, wordpress query posts category, alternative query posts wordpress, wordpress sql query posts category, wordpress plugin allow php includes posts

About the Employer:
( 22 reviews ) Thunder Bay, Canada

Project ID: #9021125

Awarded to:


Hello! I'll help you for free (actually for a review/rating, so I guess that you have to pay me at least something) - please add me on Skype and I'll tell you what needs to be done - [login to view URL] Best wishes, More

$2 USD / hour
(16 Reviews)

5 freelancers are bidding on average $4/hour for this job


Hi, I am wordpress,PHP programmer having 5 years of experience... i am very good in wordpress,php,mysql,joomla...i recently done these projects [login to view URL] please award me the project.

$5 USD / hour
(381 Reviews)

Hi, please contact me so we can discuss more and I can support you in this Wp_query syntax. Thanks. Regards, Tan.

$5 USD / hour
(75 Reviews)

A proposal has not yet been provided

$4 USD / hour
(8 Reviews)

Dear Sir/Mam, I have more than 3 years of experience in Wordpress back-end development and plugins development. I am new on Freelancer and want to pursue my carrier on Freelancer. I believe my abilities would be More

$6 USD / hour
(0 Reviews)