If someone log in as an editor, he don’t need to see that private page. I use “User Role Editor” plugin to uncheck, for editor, the “read_private_pages” capability.
The query in su_post still show me the title of the private page in the loop. When I click on it, that page is not available (ouf).
So why su_post show me the title in the loop ?
Thanks
]]>I only want tell you my experience for if can you check this matter and you re-code this code if it is necessary.
Thanks!
Best Regards!
im trying to make this ShortCodes Ultimate php-Template:
<div class="su-posts su-posts-default-loop">
<?php if ( $posts->have_posts() ) : ?>
<?php while ( $posts->have_posts() ) : $posts->the_post(); ?>
<div id="su-post-<?php the_ID(); ?>" class="su-post">
<?php if ( has_post_thumbnail( get_the_ID() ) ) : ?>
<a class="su-post-thumbnail" href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
<?php endif; ?>
<h2 class="su-post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<div class="su-post-meta">
<?php _e( 'Posted', 'shortcodes-ultimate' ); ?>: <?php the_time( get_option( 'date_format' ) ); ?>
</div>
<div class="su-post-excerpt">
<?php the_excerpt(); ?>
</div>
<a href="<?php comments_link(); ?>" class="su-post-comments-link"><?php comments_number( __( '0 comments', 'shortcodes-ultimate' ), __( '1 comment', 'shortcodes-ultimate' ), '% comments' ); ?></a>
</div>
<?php endwhile; ?>
<?php else : ?>
<h4><?php _e( 'Posts not found', 'shortcodes-ultimate' ); ?></h4>
<?php endif; ?>
</div>
to insert also the youtube video from my posts.
The Youtube-Video is embeded on my Site like this:
<div class="elementor-container elementor-column-gap-default">
<div class="elementor-row ui-sortable"><div data-id="937fe09" data-element_type="column" class="elementor-element elementor-element-edit-mode elementor-element-937fe09 elementor-element--toggle-edit-tools elementor-column elementor-top-column ui-resizable" data-col="100" data-model-cid="c220">
<div class="elementor-element-overlay">
<ul class="elementor-editor-element-settings elementor-editor-column-settings">
<li class="elementor-editor-element-setting elementor-editor-element-edit ui-sortable-handle" title="Bearbeiten">
<i class="eicon-column" aria-hidden="true"></i>
<span class="elementor-screen-only">Bearbeiten</span>
</li>
</ul>
<div class="elementor-column-percents-tooltip">100.0%</div>
</div>
<div class="elementor-column-wrap elementor-element-populated">
<div class="elementor-background-overlay"></div>
<div class="elementor-widget-wrap ui-sortable"><div data-id="da2ce94" data-element_type="widget" class="elementor-element elementor-element-edit-mode elementor-element-da2ce94 elementor-element--toggle-edit-tools elementor-widget elementor-widget-video elementor-aspect-ratio-169" data-model-cid="c539" data-widget_type="video.default"> <div class="elementor-element-overlay">
<ul class="elementor-editor-element-settings elementor-editor-widget-settings">
<li class="elementor-editor-element-setting elementor-editor-element-edit" title="Bearbeiten">
<i class="eicon-edit" aria-hidden="true"></i>
<span class="elementor-screen-only">Bearbeiten</span>
</li>
</ul>
</div>
<div class="elementor-widget-container">
<div class="elementor-wrapper elementor-fit-aspect-ratio elementor-open-inline">
<iframe class="elementor-video-iframe" allowfullscreen="" src="url"></iframe> </div>
</div>
</div></div>
</div>
<div class="ui-resizable-handle ui-resizable-e" style="z-index: 90; display: block;"></div></div></div>
</div>
I would be very thankfull if sombody could help me with this issue.
]]>[su_posts posts_per_page=”5″ taxonomy=”post_tag” tax_term=”36,34,50″ tax_operator=”2″ order=”desc” ignore_sticky_posts=”yes”]
Where tags:
36 = “F1”
34 = “F-jeugd”
50 = “Seizoen 2016-2017”
It will NOT show me a list of 5 messages which contain these tags, instead it just shows the last 5 messages…??
I have at least 1 message using tags 36, 34 and 50.
I used the su_post shortcode to display 8 posts with the default loop on my 404 page. Do you know why the post excerpts are going into the thumbnail images for each post displayed? Use this broken link to get you to my 404 page: https://www.mailshark.com.au/recent-security-news/url. The posts are under the search bar. Can you provide a fix for this formatting issue or help me try and fix it?
https://www.ads-software.com/plugins/shortcodes-ultimate/
]]>