Forum Replies Created

Viewing 15 replies - 76 through 90 (of 164 total)
  • Thread Starter earrame

    (@earrame)

    I am talking about the menu in the dashboard. It is permanently collapsed when this plugin is active making it very difficult to use. We are in WordPress 4.5.1 with a custom theme. I believe this happened when we upgraded WordPress, so I assume it is a problem with the latest version.

    Thread Starter earrame

    (@earrame)

    Nevermind, I chose a different slider.

    Thread Starter earrame

    (@earrame)

    YES! Thank you.

    Thread Starter earrame

    (@earrame)

    It is set to ‘Array’

    Thread Starter earrame

    (@earrame)

    marionpollmannceramics.com

    The error goes away when I remove the plugin. This isn’t the only place it is giving the error. If I log out of the dashboard with the plugin active I get the below string of errors, I can only log back in if I deactivate the plugin:

    Warning: trim() expects parameter 1 to be string, array given in /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php on line 92

    Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-login.php on line 387

    Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-login.php on line 400

    Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 977

    Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 978

    Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 979

    Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 980

    Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 981

    Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 982

    Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 985

    Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 986

    Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 987

    Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 988

    Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 991

    Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 992

    Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 993

    Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 994

    Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 1228

    Thread Starter earrame

    (@earrame)

    Wow! thanks that finally did it. Thanks everyone for your expertise!

    Thread Starter earrame

    (@earrame)

    Actually, I take that back. it is still not changing the posts on the page, it just is not restricting them to the category.

    Thread Starter earrame

    (@earrame)

    Thanks for the input Keesiemeijer,

    Changing the position of the wp_paginate function didn’t do anything. When I added the paged parameter, it now paginates, but does not restrict the posts to one category. Perhaps I added the paged parameter incorrectly. Here is the page code as it now stands:

    <?php
    /**
     *	@package WordPress
     *	@subpackage Grid_Focus
     */
    get_header();
    ?>
    <div id="filler" class="fix">
    	<div id="mainColumn">
        <h2 class="page_title">News</h2>
    <?php  $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
    $query = new WP_Query( array( 'cat' => 1 ) .$paged ); ?>
    
    <?php if ( $query->have_posts() ) : ?>
    
    		<!-- the loop -->
    	<?php while ( $query->have_posts() ) : $query->the_post(); ?>
    		<div id="post-<?php the_ID(); ?>" class="post">
    			<div class="postMeta">
    				<p class="container">
    					<span class="date"><?php the_time('M j, Y') ?></span>
    					<span class="comments"><?php comments_popup_link('0', '1', '%'); ?></span>
    				</p>
    			</div>
    			<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title() ?></a></h2>
    			<div class="addthis_toolbox addthis_default_style" style="">
    <a class="addthis_button_facebook_send" addthis:url="<?php the_permalink(); ?>" addthis:title="<?php the_title(); ?>" ></a>
    <a class="addthis_button_tweet" addthis:url="<?php the_permalink(); ?>" addthis:title="<?php the_title(); ?>" tw:via="kraftwerkk9"></a>
    <a class="addthis_button_google_plusone" g:plusone:annotation="bubble" addthis:url="<?php the_permalink(); ?>" addthis:title="<?php the_title(); ?>"g:plusone:size="medium" ></a>
    <div class="hide_fb_like"><a class="addthis_button_facebook_like" addthis:url="<?php the_permalink(); ?>" ></a></div>
    			</div>
    			<br clear="all"/>
    			<div class="entry">
    				<?php the_content('Read the rest of this entry &raquo;'); ?>
    			</div>
    		</div>
    		<?php endwhile; ?>
    		<!-- end of the loop -->
    		  <?php if(function_exists('wp_paginate')) {
        wp_paginate();
    } ?>
    
    		<?php wp_reset_postdata(); ?>
    		<?php else : ?>
    		<div class="post">
    			<div class="postMeta">
    				<p class="container">
    					<span class="date">No Matches</span>
    				</p>
    			</div>
    			<h2>No matching results</h2>
    			<div class="entry">
    				<p>You seem to have found a mis-linked page or search query with no matching results. Please trying your search again. If you feel that you should be staring at something a little more concrete, feel free to email the author of this site or browse the archives.</p>
    			</div>
    		</div>
    		<?php endif; ?>
    
    	</div>
    
    <?php get_sidebar(); ?>
    </div>
    <?php get_footer(); ?>
    Thread Starter earrame

    (@earrame)

    Hi Digico,
    Sadly, nothing noticeable happened when I removed that line.

    Thread Starter earrame

    (@earrame)

    I have followed exactly the code example in WP_query Standard Loop (alternate) and for some reason I am getting the same results. There must be something else causing the problem. I tried again to disable all plugins just to be sure there isn’t a conflict and there isn’t. (unless it is with Gravity Forms, which if I disable the whole page doesn’t work) The code as I have it now for the file is as follows:

    <?php
    /**
     *	@package WordPress
     *	@subpackage Grid_Focus
     */
    get_header();
    ?>
    <div id="filler" class="fix">
    	<div id="mainColumn">
        <h2 class="page_title">News</h2>
    
    <?php
    $the_query = new WP_Query( array( 'cat' => '1' ) ); ?>
    
    <?php if ( $the_query->have_posts() ) : ?>
    
    		<!-- the loop -->
    	<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
    		<div id="post-<?php the_ID(); ?>" class="post">
    			<div class="postMeta">
    				<p class="container">
    					<span class="date"><?php the_time('M j, Y') ?></span>
    					<span class="comments"><?php comments_popup_link('0', '1', '%'); ?></span>
    				</p>
    			</div>
    			<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title() ?></a></h2>
    			<div class="addthis_toolbox addthis_default_style" style="">
    <a class="addthis_button_facebook_send" addthis:url="<?php the_permalink(); ?>" addthis:title="<?php the_title(); ?>" ></a>
    <a class="addthis_button_tweet" addthis:url="<?php the_permalink(); ?>" addthis:title="<?php the_title(); ?>" tw:via="kraftwerkk9"></a>
    <a class="addthis_button_google_plusone" g:plusone:annotation="bubble" addthis:url="<?php the_permalink(); ?>" addthis:title="<?php the_title(); ?>"g:plusone:size="medium" ></a>
    <div class="hide_fb_like"><a class="addthis_button_facebook_like" addthis:url="<?php the_permalink(); ?>" ></a></div>
    			</div>
    			<br clear="all"/>
    			<div class="entry">
    				<?php the_content('Read the rest of this entry &raquo;'); ?>
    			</div>
    		</div>
    		<?php endwhile; ?>
    		<!-- end of the loop -->
    		<?php wp_reset_postdata(); ?>
    		<?php else : ?>
    		<div class="post">
    			<div class="postMeta">
    				<p class="container">
    					<span class="date">No Matches</span>
    				</p>
    			</div>
    			<h2>No matching results</h2>
    			<div class="entry">
    				<p>You seem to have found a mis-linked page or search query with no matching results. Please trying your search again. If you feel that you should be staring at something a little more concrete, feel free to email the author of this site or browse the archives.</p>
    			</div>
    		</div>
    		<?php endif; ?>
    
        <?php if(function_exists('wp_paginate')) {
        wp_paginate();
    } ?>
    
    	</div>
    
    <?php get_sidebar(); ?>
    </div>
    <?php get_footer(); ?>
    Thread Starter earrame

    (@earrame)

    Thanks again for the responses. Unfortunately neither of these solutions solve the problem. I already have pagination links on the page. I can click through all 159 pages and the URL changes: /news/page/2/, /news/page/3/,/news/page/4/, etc. But the content of each page remains the same 10 most recent posts of the category.

    I added codeManiacs pagination code both inside and outside the loop and still have the same result.

    Thread Starter earrame

    (@earrame)

    That didn’t seem to do it. Now there are only 3 (or 5, or 20) posts displayed. The same as before, if you go to page 2 or 3 or 98, only the first ones are shown.

    There is a plugin that is called to show the pagination links, so that is taken care of:

    I will read over the codex again.

    Thread Starter earrame

    (@earrame)

    Thanks for your help Digico. It seems that I am back to where I started. The first page of cat 1 is displaying, but when I go to page 2 it still shows the first 10 posts and not the next 10.

    This is what the code looks like now:

    <?php
    $query = new WP_Query( array( 'category_name' => 'general-news' ) );?>
    
    <?php if ( $query->have_posts() ) : ?>
    		<!-- the loop -->
    	<?php while ( $query->have_posts() ) : $query->the_post(); ?>
    		<div id="post-<?php the_ID(); ?>" class="post">
    			<div class="postMeta">
    				<p class="container">
    					<span class="date"><?php the_time('M j, Y') ?></span>
    					<span class="comments"><?php comments_popup_link('0', '1', '%'); ?></span>
    				</p>
    			</div>
    			<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title() ?></a></h2>
    			<div class="addthis_toolbox addthis_default_style" style="">
    <a class="addthis_button_facebook_send" addthis:url="<?php the_permalink(); ?>" addthis:title="<?php the_title(); ?>" ></a>
    <a class="addthis_button_tweet" addthis:url="<?php the_permalink(); ?>" addthis:title="<?php the_title(); ?>" tw:via="kraftwerkk9"></a>
    <a class="addthis_button_google_plusone" g:plusone:annotation="bubble" addthis:url="<?php the_permalink(); ?>" addthis:title="<?php the_title(); ?>"g:plusone:size="medium" ></a>
    <div class="hide_fb_like"><a class="addthis_button_facebook_like" addthis:url="<?php the_permalink(); ?>" ></a></div>
    			</div>
    			<br clear="all"/>
    			<div class="entry">
    				<?php the_content('Read the rest of this entry &raquo;'); ?>
    			</div>
    		</div>
    		<?php endwhile; ?>
    		<!-- end of the loop -->
    		<?php wp_reset_postdata(); ?>
    		<?php else : ?>
    		<div class="post">
    			<div class="postMeta">
    				<p class="container">
    					<span class="date">No Matches</span>
    				</p>
    			</div>
    			<h2>No matching results</h2>
    			<div class="entry">
    				<p>You seem to have found a mis-linked page or search query with no matching results. Please trying your search again. If you feel that you should be staring at something a little more concrete, feel free to email the author of this site or browse the archives.</p>
    			</div>
    		</div>
    		<?php endif; ?>
    Thread Starter earrame

    (@earrame)

    mmmmm. I spoke too soon. It appears that it is not just showing category 1. It is showing all posts. What did I do wrong?

    Thread Starter earrame

    (@earrame)

    I think I got it. it should be this:

    <?php
    $query = new WP_Query( array( ‘cat’ => 1 ) );
    ?>

Viewing 15 replies - 76 through 90 (of 164 total)