Suoritettu

WP_Query or Get_Posts query costumization to wordpress.

Hello,

I need some quick help writing a custom wp_query or get_posts query that fetches all posts from a set category and all posts that are set as private.

I'm using this code right now :

$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;

$query_args = array(

'post_type' => 'post',

'category_name' => 'test',

'post_status' => array('private', 'publish'),

'posts_per_page' => 20,

'paged' => $paged

);

The problem is that it only fetches posts if they are in category "test"!

I want it to fetch all posts in category test + all posts that are flagged as private even though the private posts have other categories assigned to them.

I'm hoping for a quick fix over chat to get this job done!

Taidot: PHP, tietojärjestelmäarkkitehtuuri, WordPress

Näytä lisää: wordpress help chat, i need a quick code for wordpress, get writing publish, get a job writing now, wordpress query posts next page category, wordpress custom sql query posts, software write edid, free software write company profile, software write websites idea, wordpress sort posts query posts, software write book images, software write books, software write protection, free software write book, sql query posts category wordpress, examples wordpress query posts, wordpress query posts based date, wordpress query posts, software write book, wordpress query posts category

Tietoa työnantajasta:
( 9 arvostelua ) stockholm, Sweden

Projektin tunnus: #9484820

Myönnetty käyttäjälle:

ruhulamin24

Hi, I am interested in your project. I am expert in wordpress. I can write the query write now. Thanks, Ruhul

€17 EUR 1 päivässä
(40 Arvostelua)
4.7

6 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

verya

Good day! I can surely help you out with this WP query :) I'm a WP expert and develop themes/plugins for a living so I can help you out quickly! Come chat!

€23 EUR 0 päivässä
(13 arvostelua)
4.1
sushmakargwal

Hi, Greetings of the Day! We have read carefully & analysis of your WP_Query requirements. Our Expert Wordpress Developers & Designers can provide it you just with in 0 days [login to view URL] know about our previous wo Lisää

€19 EUR 1 päivässä
(12 arvostelua)
3.9
Brightinfotech3

Hi, Thanks for reviewing my cover letter. I have more then 5 years experience in WORDPRESS/ magento / PHP / MYSQL /Codeigniter/ CSS3 / HTML5 / JQUERY/ plugin/Themes development and modification, API integration, Lisää

€23 EUR 1 päivässä
(6 arvostelua)
2.7
€24 EUR 1 päivässä
(1 arvostelu)
1.2
€23 EUR 1 päivässä
(0 arvostelua)
0.0