Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter juergreh

    (@juergreh)

    Thanks for the explanation, that makes sense.

    Cheers

    Thread Starter juergreh

    (@juergreh)

    correct.

    are you aware of any differences of how the slide show initiates if i output with

    $post = get_post($p); //$p is the post_ID
    echo $post->post_content;

    or with

    query_posts( array ( 'category_id' => $cat, 'posts_per_page' => 1 ) );
    while ( have_posts() ) : the_post();
    	the_content();
    endwhile;

    The 2nd method outputs it correctly, but I changed the page to retrieve the post via post_id so I wanted to use the first method

    Thread Starter juergreh

    (@juergreh)

    Hi Stefan

    Right now, with do_action(‘slideshow_deploy’, $post->post_content); I actually passing the slide show ID (93) as $post->post_content, and not the whole string [slideshow_deploy id=93].

    I understand it should work by using [slideshow_deploy id=93] as the content of the post but somehow when outputting the post with

    $post = get_post($p); //$p is the post_ID
    echo $post->post_content;

    it doesn’t initiate the slideshow but only shows this string “[slideshow_deploy id=93]”. I guess my output method is not happy with the slideshow string.

    Thanks

    Thread Starter juergreh

    (@juergreh)

    Thanks for the fast response. Changing the PHP file was all I needed anyway.

Viewing 4 replies - 1 through 4 (of 4 total)