• Resolved caroline

    (@makeupedia)


    The arrows show up when I use this plugin with images in regular posts (i.e. wordpress built in) but they won’t show up in my products custom post type.

    The coding doesn’t seems to show up either “span.featherlight-previous” and “span.featherlight-next”. What is missing?

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter caroline

    (@makeupedia)

    Ok, so the arrows only show up if I insert the images directly in the post content (entry content).

    I use this code but it doesn’t help, do I have to edit every post to get the arrows there?

    <?php
    			the_content();
    
    			wp_link_pages( array(
    				'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentysixteen' ) . '</span>',
    				'after'       => '</div>',
    				'link_before' => '<span>',
    				'link_after'  => '</span>',
    				'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
    				'separator'   => '<span class="screen-reader-text"> </span>',
    			) );
    
    			if ( '' !== get_the_author_meta( 'description' ) ) {
    				get_template_part( 'template-parts/biography' );
    			}
    
    $images =& get_children( array (
    	'post_parent' => $post->ID,
    	'post_type' => 'attachment',
    	'post_mime_type' => 'image',
    	'posts_per_page' => 25
    ));
    
    	if ( empty($images) ) {
    		
    
    	} else {
    		foreach ( $images as $attachment_id => $attachment ) {
    			echo wp_get_attachment_link( $attachment_id, 'thumbnail' );
    
    		}
    	}
    		?>
    Plugin Author Ozzy Rodriguez

    (@ozzyr)

    Hi Caroline,

    The plugin is made to look for images inside the content area. I can’t test it on your environment, but if you add a class of “gallery” to the current “pics” div, it may work as you’d like.

    Thread Starter caroline

    (@makeupedia)

    It works ?? Thank you so much for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Arrows not showing on Custom Post Type’ is closed to new replies.