Get field from post
-
First, sorry for my english.
I´m making a page of real state building with an slider. The modified post type have field for add images, but can´t show the correct images.
I have this code on php template for getting a img url for the slide. If I put the id (109) manually it gets the correct image, but if I put id=”ID” don´t get any image.
<div class="p-slide js-slide" style="background-image: url('<?php echo do_shortcode( '[pods name="post" id="109" template="promociones"]{@slider_1}[/pods]' ); ?>');">
How can i get post id here?<div class="p-slide js-slide" style="background-image: url('<?php echo do_shortcode( '[pods name="post" id="ID" template="promociones"]{@slider_1}[/pods]' ); ?>');">Thanks in advance.
Pablo
The page I need help with: [log in to see the link]
The topic ‘Get field from post’ is closed to new replies.