Find Jobs
Hire Freelancers

Wordpress Queries

$10-30 USD

Tamamlandı
İlan edilme: yaklaşık 10 yıl önce

$10-30 USD

Teslimde ödenir
I have a page where I need to display posts with a custom meta key value of "original-document" in the left column and the rest of the posts from the category in the right column. You can see the page here [url][login to view URL][/url] The problem is that the posts tagged as original documents are showing up in the right column as well as the left column. [PHP]global $query_string; $keys = array( 'orderby' => 'ID', 'order' => 'asc', 'numberposts' => -1, 'meta_query' => array( array ( 'key' => 'document_details', 'value'=>'original-document' ) ) ); $args = array_merge( $wp_query->query_vars, $keys ); $keys2 = array( 'orderby' => 'ID', 'numberposts' => -1, 'post__not_in' => array($args), 'order' => 'asc', 'meta_query' => array( array ( 'meta_key' => 'document_details', 'meta_value' => 'original-document', 'meta_compare' => '!=' ) ) ); $args2 = array_merge( $wp_query->query_vars, $keys2 ); ?>[/PHP] I have also tried excludes and operators in my $args2 query and the original documents still show. I also though this would work in my second query but it does not work [PHP]$keys2 = array( 'orderby' => 'ID', 'numberposts' => -1, 'exclude' => array($args), 'post__not_in' => array($args), 'order' => 'asc', ); $args2 = array_merge( $wp_query->query_vars, $keys2 ); ?>[/PHP] I need to exclude any posts from my first query from appearing in my second query.
Proje No: 5456637

Proje hakkında

2 teklif
Uzaktan proje
Son aktiviteden bu yana geçen zaman 10 yıl önce

Biraz para mı kazanmak istiyorsunuz?

Freelancer'da teklif vermenin faydaları

Bütçenizi ve zaman çerçevenizi belirleyin
Çalışmanız için ödeme alın
Teklifinizin ana hatlarını belirleyin
Kaydolmak ve işlere teklif vermek ücretsizdir
Seçilen:
Kullanıcı Avatarı
We are '3stechmind' team of dedicated software professionals developing the web projects for our [login to view URL] area of expertise is design the web site and implement the functional aspects in software technolgies like php,magneto, wordPress, jquery, .net, html etc. Note : We have gone through your requirements and we have all expertise required for the given project as we have built the similar website and there are demos available on our website below. We have proven record of serving our clients and transforming their business to new heights. Our clients have managed to server their existing customers better and also acquire new clientele. We also do website maintenance, Data entry, Import Export script for data extraction, Bug Fixing, Site customization, Consult for the Solutions, Web services. We can be reached at 201-918-7246 for your business. We are just one call away to serve you better. Our company website : [login to view URL] You can check out our current ongoing projects : [login to view URL] [login to view URL] [login to view URL]
$23 USD 1 gün içinde
0,0 (0 değerlendirme)
0,0
0,0

Müşteri hakkında

   UNITED STATES bayrağı
huntington beach, United States
4,9
3
Ara 28, 2009 tarihinden bu yana üye

Müşteri Doğrulaması

Teşekkürler! Ücretsiz kredinizi talep etmeniz için size bir bağlantı gönderdik.
E-postanız gönderilirken bir şeyler yanlış gitti. Lütfen tekrar deneyin.
Kayıtlı Kullanıcı İlan Edlien Toplam İş
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ön izleme yükleniyor
Coğrafik konum için izin verildi.
Giriş oturumunuzun süresi doldu ve çıkış yaptınız. Lütfen tekrar giriş yapın.