Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • You can just disable all your plugins one by one.
    Call to mind which plugin you updated last time.
    When I got the EXACT issue yesterday Fatal error: Call to undefined method stdClass::actions() in /home/outdoor/public_html/wp-content/plugins/iconic-navigation/classes/cadreu_plugin_options.php on line 332", I did deactivation for every plugin which I have. When I deactivated “NextGEN Gallery by Photocrati, the problem was solved.

    If it helped you, like us on Facebook, it’ll buy me a cup of coffee) https://www.facebook.com/MyChicagoNews

    Thread Starter chicagonews

    (@chicagonews)

    Resolved by
    $short_title = implode (' ', array_slice (explode (' ', get_the_title ()), 0, $words));
    Thanks

    Thread Starter chicagonews

    (@chicagonews)

    @catacaustic Thank you so much.
    If I could say “Thanks” to you through Facebook, let me put you a like:)

    Thread Starter chicagonews

    (@chicagonews)

    @catacaustic Works!
    But.. Only one thing.. We have lost “…”
    Usually on topic (and sub topic) we have more than 5 words. How I can say to HTML “cut after 4th word and than insert …”?
    Thank you.

    Thread Starter chicagonews

    (@chicagonews)

    I paste it like this

    // display only first 58 characters in the slide title.
    $words = 4;
    
    $short_title = implode (' ', array_slice (explode (' ', get_the_title ()), 0, $words));
    
    											$short_title = substr(the_title('','',FALSE),0,58);
    											echo $short_title;
    											if (strlen($short_title) >57){
    												echo '...';

    But nothing changes..
    @christopherross, I downloaded… installed… have no idea what to do next.
    Sorry. I’m new with HTML and coding…

    Here is the whole slider code…

    ?>
    <?php
    	$slider_cat_id = max_magazine_get_option( 'slider_category');
    	//if no category is selected for slider, show latest posts
    	if ( $slider_cat_id == 0 ) {
    		$post_query = 'posts_per_page=5';
    	} else {
    		$post_query = 'cat='.$slider_cat_id.'&posts_per_page=5';
    	}
    ?>
    
    <div id="slider">
    	<div class="lof-slidecontent">
    	<div class="preload"><div></div></div>
                <div class="main-slider-content">
                    <ul class="sliders-wrap-inner">
    					<?php query_posts( $post_query ); ?>
    					<?php if (have_posts()) : ?>
    						<?php while (have_posts()) : the_post(); ?>
    					        <li>
    								<?php if ( has_post_thumbnail()) : ?>
    									<a href="<?php the_permalink() ?>"><?php the_post_thumbnail( 'slider-image' ); ?></a>
    								<?php endif; ?>
    
    								<div class="lof-main-item-desc">
    									<div class="date"><?php the_time( get_option( 'date_format' ) ) ?></div>	
    
    									<h3>
    										<a href="<?php the_permalink(); ?>">
    
    										<?php
    											// display only first 58 characters in the slide title.
    $words = 4;
    
    $short_title = implode (' ', array_slice (explode (' ', get_the_title ()), 0, $words));
    
    											$short_title = substr(the_title('','',FALSE),0,58);
    											echo $short_title;
    											if (strlen($short_title) >57){
    												echo '...';
    											}
    										?>
    										</a>
    									</h3>
    
    									<div class="description">
    										<?php
    											// display only first 150 characters in the slide description.
    											$excerpt = get_the_excerpt();
    											echo substr($excerpt,0, 150);
    											if (strlen($excerpt) > 149){
    												echo '...';
    											}
    										?>
    									</div>
    								</div>
    							</li>
    						<?php endwhile; ?>
    					<?php endif; ?>
    					<?php wp_reset_query();?>
                    </ul>
                </div><!-- /main-slider-content --> 
    
    		   	<div class="navigator-content">
                      <div class="button-next">Next</div>
                      <div class="navigator-wrapper">
                            <ul class="navigator-wrap-inner">
    							<?php query_posts( $post_query ); ?>
    							<?php if (have_posts()) : ?>
    								<?php while (have_posts()) : the_post(); ?>
    									<?php if ( has_post_thumbnail()) : ?>
    										<li><?php the_post_thumbnail( 'small-thumb' ); ?></li>
    									<?php endif; ?>
    								<?php endwhile; ?>
    							<?php endif;?>
    							<?php wp_reset_query();?>
                            </ul>
                      </div>
                      <div  class="button-previous">Previous</div>
                 </div> <!-- /navigator-content --> 
    
                <div class="button-control"><span></span></div>
        </div>
     </div><!-- /slider -->

    Thread Starter chicagonews

    (@chicagonews)

    My sliders cut words after a certain amount of symbols.
    How I can tell HTML to cut words by words, not by symbols?
    Here is a part of my slider code to make myself more clear 🙂

    // display only first 85 characters in the title.
    										$short_title = substr(the_title('','',FALSE),0,85);
    										echo $short_title;
    										if (strlen($short_title) >84){
    											echo '...';
    Thread Starter chicagonews

    (@chicagonews)

    Wow.. I’m going to check it..
    Thank you

Viewing 7 replies - 1 through 7 (of 7 total)