You mean:
<?php
include "http://www.sample.com/wp-load.php";
This setting is disabled/not allowed by default in most web servers (php.ini) so you can not use the include to include the files from a remote address for security reasons.
If you still want to allow inclusion of remote files, the directive allow_url_include must be set toOn(or 1) inphp.ini`.
But again it is a bad practice, in a security-oriented point of view. Often it is generally disabled.
Alternative is to use the feed. Parse the feed of the WordPress installation and use the content from this part. A another alternative is the XMLRPC surface, but the feed is easy to use and have all content parts.
Related Posts:
- How can I fetch loop of post titles via AJAX?
- get product attributes for current product and store it in a variable
- Guidance with The Loop for CMS
- How to add active class to custom menu using while loop and wp_list_pages
- MySQL query performed 4 times inside loop
- Print html when custom field has value inside while loop
- delete an array element when its date expires
- Infinite-Scroll Plugin and Jetpack Infinite Scroll Plugin – Adding to “Thoughts” Theme
- Custom Loop through category menu to include sub categories
- When would you use $_post instead of $post?
- Call to undefined function issue
- How do I display the function the_content in this loop?
- How to get to a specific position in wp_query?
- Facebook “like” open graph meta in header.php
- Custom excerpt function re-factoring
- How can I show the post thumbnail from the most recent of a certain post type, in widget?
- ACF page while loop breaks footer while loop
- Using foreach loop breaks
- Split loop into two columns, how to favor one side over the other
- Dynamic Stylesheet loads but doesn’t finish
- Filter Select results based on selection
- Loop with slider (slider not loading)
- How to hide all child pages with post_query?
- How to sort posts based on the value (number) of a post’s metadata?
- Displaying Woocommerce Product Category in WordPress
- How can I add extra word in permalink when someone click download button?
- Increase offset while looping
- getting logged in user info (wp-load.php) from parent directory
- Blog posts repeat
- Woocommerce : Can’t get product info in loop
- remove post that has no content
- Checkbox doesn’t stay checked, conten
- List posts that don’t have a specific tag?
- Changing the_posts_navigation() html output
- Can we count the WordPress Loop
- WP_Query fails despite having 1 post
- Add content after the first post in WP Loop
- Loop stopped working
- Display an image if odd number of posts in grid
- Store post content in a php variable and output them using for loop
- What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
- 2nd page displaying the exact same posts as my first page (minus the very first post)
- Is the 404 page automatically displayed if a loop returns nothing?
- Last class on last headline?
- How to get the last category name of a child category?
- WordPress query undefined offset in loop
- How to pass a variable to get_template_part that’s updated every time the template part is called?
- use loop to return blog details
- How to add post meta in while loop?
- Echoing a CSS class based on category of post in a list
- Calling function in loop causes repeat data
- How to Generate a list of Most Commented post?
- How to extract information from a wp_query result?
- How to pick “full/thumbnail” images in the loop?
- How to Fix an Archive.php That Displays All Posts?
- Php code error in wordpress if else statements [closed]
- How to add ASCII symbol after each recent post [closed]
- pagination broken – clicking next displays “page not found”
- Search.php gets metadata from first post
- the_post(); prints out style text into my HTML?
- How do I get pagination for get_posts() in WordPress or do I have to rewrite the whole code?
- Check if current post in loop is last on current page
- Responsive loop with 3 columns inside row then 2 columns
- adding or removing endforeach; throws error!
- Adding PHP to an if else loop
- Accordion headings cuts off to second line on collapsing a accordion heading (used acf repeater)
- WordPress Recent Posts – Loop
- ACF background-color per post in a WordPress loop
- Advertisement in Loop Posts wordpress
- Date of last blog update for specific authors only?
- Filter loop by ‘price’ with meta_query
- Adding custom PHP to existing loop in Genesis
- How to Pass Current Taxonomy Terms into new WP_Query?
- Problems with the WordPress loop [closed]
- WordPress while loop with aphabetic counting like one, two, three
- Add post class in custom loop (WP_QUERY)
- Loop returns more items than exist?
- Modify category archive page loop on functions.php
- WP_Post is not from correct array
- Post formating on Home page
- divide custom field values in div every two values
- I want my wordpress loop to only display posts of the standard format
- Automatically create a loop for post ID
- Limit ads appearing more than three times
- Inserting A Feed and Sidebar into an HTML Page
- Pagination on Custom Loop
- why is this content-template not showing any of my blog-entries?
- Advanced Taxonomy query, with 3 post types
- Trying to display ads on only a third of posts in a loop. Keep getting Error 500?
- Custom single.php files for different post formats
- How to call the_author_meta and make it work?
- Troubleshooting “loopback requests that take too long”
- how to use header function in wp-load.php file [closed]
- Excerpt all post content Content Same Size without word cutting off
- Help with if/else loop [closed]
- $_html is empty when var dumped
- Count the number of matching post names in foreach loop
- How do I display WooCommerce products in my query to rows of 3?
- How to get posts by a certain author in inner loop using outer loop variable or post title WordPress
- How do I use fields => ids in an array with WP Query?