There are several ways to do it:
- SQL query to the wp database
- Using a Restfull API plugin: https://wordpress.org/plugins/json-api/ you will get the json of the posts.
- Using the RSS Feed (check this tutorial http://code.tutsplus.com/articles/how-to-read-an-rss-feed-with-php-screencast–net-1272)
To be very light you can cache the results will all options.
You can grab the results and cache that results for X hours/days depending on your new posts frequency.
So it will only make the request to one of the ways above when cache time as expired.
Cheers
Related Posts:
- Is there a flowchart for WordPress loading sequence?
- How do register_sidebar() and get_sidebar() work together?
- Custom maintenance page
- How to customize the default HTML for WordPress Attachments
- Customizing the Subject Field in WordPress’ Notification Emails?
- How to move wp-content (or uploads) outside of the WordPress directory
- Is it possible to change the attributes of a registered style or script before it fires?
- how to change “published date” format on edit.php (Posts page)?
- How can I integrate pages written in something other than PHP?
- How to change submit button value in comment from “Post Comment” to “Send”
- WordPress custom post types breaks permalink on theme reinstall
- Custom field values in permalink
- Creating a searchable A-Z listing of hundreds of companies/services
- Show attribute description when filtering by that attribute
- Custom protected password page with ACF
- Page load requires a trailing “/” [closed]
- Customize in category page
- Custom Dashboard Home Screen Options
- How to get WordPress to accept the tag in articles (or other alternatives)
- Add custom column to Users admin panel with Types user custom fields?
- How do I change the default admin color scheme in MP6
- dynamic external javascript generated using php
- Show Custom Taxonomy Slug(s)?
- What’s the proper way to use a custom table? [closed]
- How to retrieve the value stored in a multi-dimensional array and SUM the entries?
- woocommerce Add custom field set like billing fields
- How can a single line in a blog post take down my server?
- Calling a php file from a javascript file in wordpress
- Adding a Table to the wordpress database
- Integrate WordPress into existing website
- How can I use get_bloginfo(‘admin_email’) in a custom PHP file?
- how can I change the background color of all posts on my server?
- Auto redirect after session expire, but only for one user
- Turn off redirect to canonical domain (or host website on any hostname)
- CSS to remove “comments count” icon from main page [closed]
- What’s wrong with Customizing new user notification email by add_filter?
- Automatically Update Woocommerce Prices [closed]
- Custom title, Bones theme
- How to create a completely private wordpress with multiple membership levels
- Why do posts disappear from admin after upgrading from WP 2.7.1 to 3.0.1?
- How to change the category url jusy show /category/%category_id% in wordpress?
- custom meta box for page default template
- How can I display a PHP foreach loop’s answers by AJAX
- No shipping method has been selected [closed]
- Child Theme with multiple css files
- Organizing the position of widgetized areas in the backend
- “An automated WordPress update has failed to complete – please attempt the update again now”– But there is no .maintenance file
- How do I redirect a post url to a custom url?
- How to customize
- Why the css in twenteenfourteen-child theme take no effect?
- Determine if action was executed in functions
- Extending core class in plugin
- Is it possible to make wordpress LMS
- Saving contact form 7 data into custom Table
- add custom content to appearance/widgets screen
- css media query question [closed]
- How to create a page /1 using ?
- Open “Visit site” in a new window?
- Hiding Short Description in Shop Page, WooCommerce
- theme customizer – can a single option pass multiple values?
- Separate header for static home page and posts page
- Media Upload not working after hiding some elements from functions.php
- Pagination with custom field
- What’s the right way to share data between widgets?
- How to add WordPress JS Script Links
- Importing specified data/field
- Customizing the gallery of the post correctly
- How to retain visual breadcrumbs w/ tricky URL structure? Custom post template?
- Mimicking admin panel menu from wordpress 3.0.1
- query variables for custom taxonomies
- Will WordPress updates remove Gutenberg Additional Classes?
- WP_Query – sort the results by meta value custom attribute wocoomerce
- Adding overlay search to wordpress using add action/filter
- wordpress custom fields loop
- Multiple header style under meta box
- why won’t my custom css load with the enqueue method or any other method?
- How do I add a dropdown menu to a form?
- How can I create a Custom Page? (not a page template!!)
- Adding a drop-down (select tag) option under Menu Settings in WordPress Admin
- How to have different background image based on post category
- POST 429 Error when trying to place more than 20 images into post at once
- Issue with navigation bar in child theme
- How to add rewrite rule for product compare page?
- How to compare number with id of post in certain category
- Custom stylesheet not loading
- Custom Admin Section
- Local and live synchronized dev and production environment [closed]
- how to hard link to the posts page?
- issue with saving custom metaboxes fields
- Getting a jQuery library to work in WordPress & Avada
- Error in establishing a database connection in wordpress?
- DOM reference to TinyMCE editor element (button)
- Allow arbitrary text after page URL
- Possible to make a site like urban dictionary using WP?
- Turn Autocomplete on
- Custom Link In WordPress Media “Attachment Details” Upload Screen
- display my pages html
- “Static” pages within a theme
- Custom WordPress SQL Query 4 posts per custom taxonomy
- updated permalink structure on localhost does not work