$post->post_content empty while all other properties are correct

I’m trying to pull raw post content in order to identify if a particular shortcode is used, and if so, what its properties are. All of the properties of my $post object return what I expect except for post_content, which seems to give me an empty value. I’ve tried removing all markup from the body in order to avoid any potential pre-processing, but even then I get nothing. Here’s how I try for the content;

    $content_post = get_post($post->ID, OBJECT, 'edit');
    $content = $content_post->post_content;

I got the same result using

    $content_post = get_post($post->ID, OBJECT, 'raw');

This being my first WP project, I’m hoping I missed something simple…

Go to Source
Author: GoetzOnline

WordPress API single post

I’m grabbing a list of posts from Blog A to Blog B using the wordpress API, so far everything is fine, but how do I access the single post inside Blog B? How do I make it so when I access /blog/post-name it shows me the content from the same post from Blog A?

Anyone has an idea?

Go to Source
Author: Radu033

WP_Query show the posts in sequence of tags entered in Query

Basicly I want to show the post in sequence of what the tags entered are.

For instance this is my Query:

$args = array(
    'post_type'              => array( 'providers' ),
    'post_status'            => array( 'publish' ),
    'tag' => array( 'speed', 'price', 'contract', 'network' ),
$the_query = new WP_Query( $args );

I would like to show the post with the tag ‘speed’ first and ‘network’ last. I could not find a matching ‘orderby’ in the wordpress codex. I’m wondering if someone here knows how to do this.

Thank you!

Go to Source
Author: Kevin M.