In Progress

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) {

extract(shortcode_atts(array(

'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:
( 21 reviews ) Thunder Bay, Canada

Project ID: #9021125

Awarded to:

pogoking

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 - [url removed, login to view] Best wishes, More

$2 USD / hour
(7 Reviews)
3.2

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

sat12

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 [url removed, login to view] please award me the project.

$5 USD / hour
(237 Reviews)
6.4
tanpn89

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
(40 Reviews)
5.1
peroweb

A proposal has not yet been provided

$4 USD / hour
(4 Reviews)
3.4
phpmastercoder

I am Expert Developer, I have read the Project description, I definitely can help you. I am very much confident for this Project, I can start Work now. kindly do select bid. Developed Website URLs:- http:// More

$5 USD / hour
(12 Reviews)
2.4
jaspreetrehal

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)
0.0