torte
Forum Replies Created
-
Forum: Plugins
In reply to: [Send PDF for Contact Form 7] Error in the footer of my websiteHey there, same problem. I also had to deactivate the plugin so the error wasn’t showing up. Would love a fix for this…
Forum: Plugins
In reply to: [Advanced Excerpt] Working on Posts Listing; Not on HomepageHi @wpkube
when I completely remove that specific line of code the excerpt is not shown any more. Only the headline, of the post and the picture are shown. No excerpt text any more.
?
Does that indicate its the right file I’m changing?Forum: Plugins
In reply to: [Advanced Excerpt] Working on Posts Listing; Not on HomepageHi @wpkube
did that.
still no change, it’s not working.
other ideas?Forum: Plugins
In reply to: [Advanced Excerpt] Working on Posts Listing; Not on HomepageHi @wpkube
I now got the right file that needs changing, however I can’t seem to get it to work, I guess I don’t know where to add the code to make it happen…
may I post the code so you can take a look?
/*-----------------------------------------------------------------------------------*/ /* Custom Zuki Widget: Recent Posts Medium One /*-----------------------------------------------------------------------------------*/ class zuki_recentposts_medium_one extends WP_Widget { public function __construct() { parent::__construct( 'zuki_recentposts_medium_one', __( 'Zuki: Recent Posts (Medium 1)', 'zuki' ), array( 'classname' => 'widget_zuki_recentposts_medium_one', 'description' => __( 'Medium-sized Recents Posts with featured image and excerpt.', 'zuki' ), ) ); } public function widget($args, $instance) { $title = $instance['title']; $postnumber = $instance['postnumber']; $category = apply_filters('widget_title', $instance['category']); echo $args['before_widget']; ?> <?php if( ! empty( $title ) ) echo '<div class="widget-title-wrap"><h3 class="widget-title"><span>'. esc_html($title) .'</span></h3></div>'; ?> <?php // The Query $mediumone_query = new WP_Query(array ( 'post_status' => 'publish', 'posts_per_page' => $postnumber, 'category_name' => $category, 'ignore_sticky_posts' => 1 ) ); ?> <?php // The Loop if($mediumone_query->have_posts()) : ?> <?php while($mediumone_query->have_posts()) : $mediumone_query->the_post() ?> <article class="rp-medium-one"> <div class="rp-medium-one-content"> <?php if ( '' != get_the_post_thumbnail() ) : ?> <div class="entry-thumb"> <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'zuki' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php the_post_thumbnail('zuki-medium-landscape'); ?></a> </div><!-- end .entry-thumb --> <?php endif; ?> <div class="entry-date"><a href="<?php the_permalink(); ?>" class="entry-date"><?php echo get_the_date(); ?></a></div> <h3 class="entry-title"><a href="<?php the_permalink(); ?>"><?php zuki_title_limit( 85, '...'); ?></a></h3> <p class="summary"><?php echo zuki_excerpt(20); ?></p> <div class="entry-author"> <?php printf( __( 'by <a href="%1$s" title="%2$s">%3$s</a>', 'zuki' ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), sprintf( esc_attr__( 'All posts by %s', 'zuki' ), get_the_author() ), get_the_author() ); ?> </div><!-- end .entry-author --> <?php if ( comments_open() ) : ?> <div class="entry-comments"> <?php comments_popup_link( '<span class="leave-reply">' . __( 'comments 0', 'zuki' ) . '</span>', __( 'comment 1', 'zuki' ), __( 'comments %', 'zuki' ) ); ?> </div><!-- end .entry-comments --> <?php endif; // comments_open() ?> </div><!--end .rp-medium-one --> </article><!--end .rp-medium-one --> <?php endwhile ?> <?php endif ?> <?php echo $args['after_widget']; // Reset the post globals as this query will have stomped on it wp_reset_postdata(); } function update($new_instance, $old_instance) { $instance['title'] = $new_instance['title']; $instance['postnumber'] = $new_instance['postnumber']; $instance['category'] = $new_instance['category']; return $new_instance; } function form($instance) { $title = isset( $instance['title'] ) ? esc_attr( $instance['title'] ) : ''; $postnumber = isset( $instance['postnumber'] ) ? esc_attr( $instance['postnumber'] ) : ''; $category = isset( $instance['category'] ) ? esc_attr( $instance['category'] ) : ''; ?> <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:','zuki'); ?></label> <input type="text" name="<?php echo $this->get_field_name('title'); ?>" value="<?php echo esc_attr($title); ?>" class="widefat" id="<?php echo $this->get_field_id('title'); ?>" /></p> <p><label for="<?php echo $this->get_field_id('postnumber'); ?>"><?php _e('Number of posts to show:','zuki'); ?></label> <input type="text" name="<?php echo $this->get_field_name('postnumber'); ?>" value="<?php echo esc_attr($postnumber); ?>" class="widefat" id="<?php echo $this->get_field_id('postnumber'); ?>" /></p> <p><label for="<?php echo $this->get_field_id('category'); ?>"><?php _e('Category slug (optional):','zuki'); ?></label> <input type="text" name="<?php echo $this->get_field_name('category'); ?>" value="<?php echo esc_attr($category); ?>" class="widefat" id="<?php echo $this->get_field_id('category'); ?>" /></p> <?php } } register_widget('zuki_recentposts_medium_one');any thoughts?
Forum: Plugins
In reply to: [Advanced Excerpt] Working on Posts Listing; Not on HomepageHi @wpkube
I heard from the support of my theme, but unfortunately they couldn’t help me to get it to work. They told me the file to change should be:
“/inc/widgets.php.”
nothing happened after a change there.
When I told them, they said ich should look for this code:
“<?php echo zuki_excerpt(20); ?>”
but I couldn’t find it anywhere… they don’t provide support for external plugins
so I’m giving up. π
Thanks for trying to help me,
best torteForum: Plugins
In reply to: [Advanced Excerpt] Working on Posts Listing; Not on HomepageHi @wpkube,
Sorry to hear you where sick, hope you’re feeling better.I have contacted the support of my theme and I’m waiting for their answer, just f.y.i.
I will let you know what comes of it.Forum: Plugins
In reply to: [Advanced Excerpt] Working on Posts Listing; Not on HomepageBTW:
I tried adding the code to the functions.php of my childtheme – nothing changed…Forum: Plugins
In reply to: [Advanced Excerpt] Working on Posts Listing; Not on HomepageI’m using a theme called Zuki by Elmastudio:
https://www.elmastudio.de/en/themes/zuki/
I can’t find a file called content.php
Do you have any suggestions?
Thanks- This reply was modified 6 years, 4 months ago by torte.
Forum: Plugins
In reply to: [Advanced Excerpt] Working on Posts Listing; Not on HomepageHi,
I have the same problem as @briancrumley
I would like to use the solution you gave:
“…
if ( function_exists( ‘the_advanced_excerpt’ ) ) the_advanced_excerpt(); else the_excerpt();
…”
I don’t know which file of my theme I have to alter (you just say “alter the code of your theme”), could you please advise?
Thanks