-
Search Results
-
Hi.
Im using your IT Solution theme. And using the flipcard shortcode. But on Iphone it wont flip over on click.
Its working fine on Android phones .I cant fint the error, maybe you have a solution for it..
you can fint the site here test.pdesign.nu
Hi
Where do I insert the shortcode for a specific button, If I want to display the button on a full width page.
When I insert the below shortcode into the page, it does not display the button, only the code, what am I doing wrong?
[su_button url=”#” size=”3″] Click me [/su_button]
and here is the link to the page
Ahoj, mám problém. Snažím sa spraviť šablónu pre kategórie článkov. Skúsil som použiť plugin SHORCODES pre kategóriu článkov.
[su_posts template="templates/default-loop.php" id="" posts_per_page="10" post_type="post" taxonomy="category" tax_term="MATERIALY" tax_operator="IN" author="" meta_key="" offset="0" order="DESC" orderby="name" post_parent="" post_status="publish" ignore_sticky_posts="no"]
It works but I do not like the design of my articles. I would like to be the ORIGINAL latestnews shortcode design in Decor theme.
can you tell me how to look the file templates/default-loop.php ???
Original code `<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-excerpt”>
<?php the_excerpt(); ?>
</div></div>
<?php endwhile; ?>
<?php else : ?>
<h4><?php _e( ‘Posts not found’, ‘shortcodes-ultimate’ ); ?></h4>
<?php endif; ?></div>
`My “work” to achieve design:
<?php function latestpostsoutput_func( $atts ){ extract( shortcode_atts( array( 'templat' => '', 'excerpt_length' => '', 'readmore' => '', 'template' => 'templates/default-loop.php', 'id' => '', 'posts_per_page' => '', 'post_type' => '', 'taxonomy' => '', 'tax_term' => '', 'tax_operator' => '', 'autor' => '', 'meta_key' => '', 'offset' => '', 'order' => '', 'orderby' => '', 'post_parent' => '', 'post_status' => '', 'ignore_sticky_post' => '', ), $atts ) ); $postoutput = ''; wp_reset_query(); $n = 0; query_posts( array( 'posts_per_page'=>$show, 'post__not_in' => get_option('sticky_posts') ) ); while ( have_posts() ) : the_post(); $n++; if( $n%2==0 ) $nomgn = 'last'; else $nomgn = ' '; if ( has_post_thumbnail()) { $large_imgSrc = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large'); $imgUrl = $large_imgSrc[0]; }else{ $imgUrl = get_template_directory_uri().'/images/img_404.png'; } $postoutput .= ' <div class="news-box '.$nomgn.'"> <div class="news-thumb"> <a href="'.get_the_permalink().'"><img src="'.$imgUrl.'" alt=" " /></a> </div> <div class="news"> <a href="'.get_permalink().'"><h3>'.get_the_title().'</h3></a> '.wp_trim_words( get_the_content(), $excerpt_length, '...' ).' ; <a href="'.get_permalink().'" class="news-link">'.$readmore.'</a> </div> </div>'; $postoutput .= ''.(($n%2==0) ? '<div class="clear"></div>' : ''); endwhile; wp_reset_query(); return $postoutput; } add_shortcode( 'latestposts', 'latestpostsoutput_func' ); ?>
Please help, I’m going to categorize
The original shortcode does not work
[latestposts show="2" excerpt_length="20" cat="" readmore="READ MORE"]
I mean the division of cat = “”
Thank you for your answer and help