Note that there are some explanatory texts on larger screens.

plurals
  1. POwordpress get second featured image in slider thumbnail
    primarykey
    data
    text
    <p>i am working on a wordpress theme and i want to get the slider thumbnail from second featured image and for that purpose i used a "multiple featured image" plugin but i am unable to get it. infact want to get that second featured image only not the first one. i used it on page not on post. </p> <p>here is the code for plugin registration</p> <pre><code>if( class_exists( 'kdMultipleFeaturedImages' ) ) { $args = array( 'id' =&gt; 'featured-image-2', 'post_type' =&gt; 'page', // Set this to post or page 'labels' =&gt; array( 'name' =&gt; 'Featured image 2', 'set' =&gt; 'Set featured image 2', 'remove' =&gt; 'Remove featured image 2', 'use' =&gt; 'Use as featured image 2', ) ); new kdMultipleFeaturedImages( $args ); } </code></pre> <p>this is the code where it shows default thumbnail and i want to replace it with my 2nd featured image.</p> <pre><code>&lt;ul&gt; &lt;?php for ($i = 0; $i &lt; $featured_num; $i++) { ?&gt; &lt;li&gt; &lt;a href="#"&lt;?php if ( $i == 0 ) echo ' class="active"'; ?&gt;&gt; &lt;?php print_thumbnail( array( 'thumbnail' =&gt; $arr[$i]["thumbnail"]["thumb"], 'use_timthumb' =&gt; $arr[$i]["thumbnail"]["use_timthumb"], 'alttext' =&gt; $arr[$i]["titletext"], 'width' =&gt; (int) $small_width, 'height' =&gt; (int) $small_height, 'et_post_id' =&gt; $arr[$i]['post_id'], 'title' =&gt; $titletext, ) ); ?&gt; &lt;span class="overlay"&gt;&lt;/span&gt; &lt;/a&gt; &lt;/li&gt; &lt;?php } ?&gt; &lt;/ul&gt; </code></pre> <p>and here is the code that i want to work for me but dont know where i amdoing wrong.</p> <pre><code>&lt;?php if( class_exists( 'kdMultipleFeaturedImages' ) ) { kd_mfi_the_featured_image( 'featured-image-2', 'page' ); } ?&gt; </code></pre> <p>i tried my best to explain my problem so if you guys need extra info that i missed then let me know. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload