Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 504799

Coding Recent Posts on Homepage

$
0
0

Replies: 0

I am trying to display three of my most recent posts on my homepage but I only want it to pull posts from the category news and none of the others. This is the code I am working with:

[/vc_column_text][vcex_spacing size="40px"][vcex_blog_grid grid_style="fit_columns" columns="3" columns_gap="30" posts_per_page="3" order="DESC" orderby="date" thumb_link="post" img_hover_style="opacity" excerpt_length="18" read_more="false" img_width="600" img_height="320" custom_excerpt_trim="true" content_border="none" content_padding="20px 0 0"][/vc_column][/vc_row][vc_row center_row="yes" bg_style="stretch" padding_top="60px" bg_color="#f5f5f5" padding_bottom="60px"][vc_column css=".vc_custom_1454444159082{margin-right: 0px !important;margin-bottom: 0px !important;margin-left: 0px !important;}"][vc_column_text]

I don’t know how to fix this code to make it pull only news and still order them from most to least recent.


Viewing all articles
Browse latest Browse all 504799

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>