• Resolved Suzan

    (@ledde-motta)


    All I want is to get the post_ID atuomatically in the hardcode.

    <?php slideshow(true, false, 38 <--- (HERE I PUT POST ID MANUALLY, post_ID="38"), array('layout' => "specific", 'width' => "700", 'height' => "420", 'auto' => "true", 'showinfo' => "true")); ?>

    What arg I Should put to get Post_ID autoamtically there?

    Thanks!

    https://wordpress.org/plugins/slideshow-gallery/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tribulant Software

    (@contrid)

    Thank you for your post.

    You can use the global $post object in WordPress, for example:

    global $post;
    $post_id = $post -> ID;
    
    slideshow(true, false, $post_id, ....)

    Let me know if that helps.

    Thread Starter Suzan

    (@ledde-motta)

    It worked very well! Thank you!!

    Plugin Author Tribulant Software

    (@contrid)

    Thank you for posting back Suzan.

    I’m glad to hear that worked fine for you.

    Let me know if you need anything else.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get the Post_ID in the hardcode automatically’ is closed to new replies.