-
Search Results
-
Hello!
I have a question about the Perfect Mechanic theme and the way it is handing pagination. I am working on a site with 82 pages of blog posts and the pagination at the bottom of the archive.php template is not handling them very well. You can see what I mean here:
URL: http://complex-soybeans.flywheelsites.com/blog/
username: Flywheel
password: nice-wineCan you recommend how I can make that look better?
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
Topic: Decor – gallery
Hello, my gallery does not work as a demo version before payment. We have added categories, but they are as if they are empty.
Visit: https://stolarstvoidunk.eu/galeria/ – click on category
Demo visit: https://www.sktperfectdemo.com/demos/decor/index.php/gallery/ – click on categoryHi, I am using Girlie Pro theme and when I upgrade to PHP 7.1 I receive an error message:
Too few arguments to function get_day_link(), 0 passed in /homepages/41/d676814423/htdocs/wp_frauennoraendlicher/wp-content/themes/skt-girlie-pro/inc/custom-functions.php on line 821 and exactly 3 expected
How can I solve this issue?
Topic: Plugin blocking site
The Simple Custom Post order plugin that you installed on my site it blocking almost all of the links. I cannot even login to my wordpress to disable it or try to fix anything:
http://soundfactordj.com/wp-admin/options.php/
Fatal error: Can’t use method return value in write context in /home1/ab80373/public_html/wp-content/plugins/simple-custom-post-order/simple-custom-post-order.php on line 49
PLEASE HELP!