Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter arniarni

    (@arniarni)

    Hi author!
    Shortcode [field image-url] does not works!

    Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    Could you give me a specific example of the code that’s not working? I will try to reproduce the issue on my side, to help me narrow down the cause.

    Thread Starter arniarni

    (@arniarni)

    Hi Eliot,

    The big part of code (where [field image-url] presents in two different parts) is below. This code worked well before update (6 days ago when I wrote first time). You can see on screenshots here or here that featured images displayed as similar or empty.

    <h2 align="center">THEMES</h2>
    <!-- STICKY THEME -->
    	<table width="100%" align="left">
    		[loop type="page" category="lock-x" id="2332" cache="true" update="true"]
    			<tr>
    				<td width="80px">
    					<img src='[field image-url]' width="72" height="72" hspace="5" vspace="5" style="border-radius: 37px;" class="forum_thumb_radius">
    				</td>
    				<td>
    					<strong>[field title-link]</strong>	<br>
    					<font size="2"><!-- Author: [field author] | -->Posted: [field date] | Upd: [field modified]<br>
    					Comments: <b>[comment count]</b> Last: [comments count="1"]<b><a href="[comment url]">[comment date]</a></b>[/comments]</font>
    					<!-- <p>[field excerpt words="10"]</p> -->
    				</td>
    			</tr>
    		[/loop]
    	</table>
    <!-- OTHER THEMES EXCLUDE STICKY -->
    	<table width="100%" align="left">
    		[loop type="page" category="lock-x" order="DESC" orderby="comment-date" exclude="2332" cache="true" update="true"]
    			<tr>
    				<td width="80px">
    					<img src='[field image-url]' width="72" height="72" hspace="5" vspace="5" style="border-radius: 37px;" class="forum_thumb_radius">
    				</td>
    				<td>
    					<strong>[field title-link]</strong>	<br>
    					<font size="2"><!-- Author: [field author] | -->Posted: [field date] | Upd: [field modified]<br>
    					Comments: <b>[comment count]</b> Last: [comments count="1"]<b><a href="[comment url]">[comment date]</a></b>[/comments]</font>
    					<!-- <p>[field excerpt words="10"]</p> -->
    				</td>
    			</tr>
    		[/loop]
    	</table>

    Regards,
    Arnold

    Plugin Author Eliot Akira

    (@miyarakira)

    I believe the newest plugin update should handle your use case correctly. I implemented an “inception index”, or post/field nesting depth, to keep track of the current post ID for loop, content and field. Could you try and see if that solves it?

    If not, could you tell me how the above code is being loaded? Is it inside a post, or called from another shortcode or PHP?

    Thread Starter arniarni

    (@arniarni)

    WOW! You are great! Featured images shortcode works excelent!
    To your question – I used code inside widget that located on page.
    Thank you very much!

    Regards,
    Arnold

    Plugin Author Eliot Akira

    (@miyarakira)

    Ahh, I’m so glad to hear it. 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Featured images are the same’ is closed to new replies.