Find Code or Path for the Slider Picture

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5388 Reply
    Janet
    Guest

    Ron,

    Where or how do you find the path to the picture(s) in the slider?

    I noticed in the example that there is a path/code to the picture in the ‘Text’ tab above the Post text.

    I do not know how to find this. Help is appreciated.

    Thanks
    Janet

    #5390
    Ron
    Keymaster

    Where or how do you find the path to the picture(s) in the slider?

    It’s all on the file slider.php

    First the code checks if the chosen post has a featured image using the conditional has_post_thumbnail()

    If the post does have a featured image then we proceed to get that image’s path using wp_get_attachment_image_src()

    I noticed in the example that there is a path/code to the picture in the ‘Text’ tab above the Post text.

    What example? Do you mean the picture on the Slider tab of Frontier Options page? That’s not an example. It is the fallback image that will be used if a post does not have a featured image.

    Why do you need to get the path of the slider images?

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Find Code or Path for the Slider Picture
Your information: