WordPress : Getting Posts from Multiple Authors & Multiple Category
-
0
down vote
favoriteI have created a page, & in that page i want to display posts from Multiple Authors & Multiple Category.
Here is the link of my template’s php file https://drive.google.com/file/d/0Bwb5t9gboU_meXlsejV3LW15cW8/view?usp=sharing
i am not php developer, so can anyone help me. what code i have to put in the code?
<?php if (isset($do_not_duplicate)) { ?> <?php $mvp_posts_num = esc_html(get_option('mvp_posts_num')); $paged = (get_query_var('page')) ? get_query_var('page') : 1; query_posts(array( 'posts_per_page' => $mvp_posts_num, 'post__not_in'=>$do_not_duplicate, 'paged' =>$paged )); if (have_posts()) : while (have_posts()) : the_post(); ?> <li class="infinite-post"> <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { ?> <a href="<?php the_permalink(); ?>" rel="bookmark"><!--mvpfeat-vid-but--> <?php } else if ( has_post_format( 'gallery' )) { ?><!--mvpfeat-gal-but--> <?php } ?> </div><!--mvp-blog-col-img--> </a> <?php } ?>cat_name ); ?>
" rel="bookmark"><!--mvp-feat1-info--> </div><!--mvp-blog-col-text--> </li> <?php endwhile; endif; ?> <?php } else { ?> <?php $mvp_posts_num = esc_html(get_option('mvp_posts_num')); $paged = (get_query_var('page')) ? get_query_var('page') : 1; query_posts(array( 'posts_per_page' => $mvp_posts_num, 'paged' =>$paged )); if (have_posts()) : while (have_posts()) : the_post(); ?> <li class="infinite-post"> <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { ?> <a href="<?php the_permalink(); ?>" rel="bookmark"><!--mvpfeat-vid-but--> <?php } else if ( has_post_format( 'gallery' )) { ?><!--mvpfeat-gal-but--> <?php } ?> </div><!--mvp-blog-col-img--> </a> <?php } ?>cat_name ); ?>
" rel="bookmark"><!--mvp-feat1-info--> </div><!--mvp-blog-col-text--> </li> <?php endwhile; endif; ?> <?php } ?> -
Unfortunately, I cannot answer your question. The first thing you need to do here and anywhere online that you post for support is to provide the URL of the site you refer to. Unless or until you do that no one is able to help you.
This is WordPress.COM support. We do not provide support for local installs of WordPress.ORG software, or for WordPress.ORG software installs on paid hosting, linked to WordPress.COM accounts with the Jetpack plugin so they display on the My Sites WordPress.com account page. However, about 30% of those who post here every day are posting to the wrong support forum and require redirection to the correct one.
Please type the actual URL of the site you are referring to into http://whoishostingthis.com to determine who hosts the site so you know where to post for support.
WordPress.COM and WordPress.ORG are completely separate and have different username accounts, logins, features, run different versions of some themes with the same names, and have separate support documentation and separate support forums. Read the differences here http://en.support.wordpress.com/com-vs-org/
WordPress.org support
The WordPress.ORG support forum is at http://wordpress.org/support. The WordPress.ORG login link is here https://login.wordpress.org/ If you do not have an account yet then click Create an account https://login.wordpress.org/register/ and if you have lost an account password click Lost password? https://login.wordpress.org/lostpassword/
WordPress.org support docs are at https://codex.wordpress.org/Main_Page
See also https://apps.wordpress.org/support/ for app support.Jetpack support
Some Jetpack solutions are here http://jetpack.com/support/
Others are in the Jetpack support forum at WordPress.org
http://wordpress.org/support/plugin/jetpack
However, if help cannot be found at either one then they can file a Jetpack support ticket here > http://en.support.wordpress.com/contact/?jetpack=needs-service
- The topic ‘WordPress : Getting Posts from Multiple Authors & Multiple Category’ is closed to new replies.