earrame
Forum Replies Created
-
Forum: Plugins
In reply to: [WP eCommerce] Dash board menu collapse is broken by WP eCommerceI 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.
Forum: Plugins
In reply to: [Responsive Slideshow - Photo Carousel] Image resizingNevermind, I chose a different slider.
Forum: Plugins
In reply to: [Embeds for YouTube] Warning appears on page after upgrade to WP 4.4.2YES! Thank you.
Forum: Plugins
In reply to: [Embeds for YouTube] Warning appears on page after upgrade to WP 4.4.2It is set to ‘Array’
Forum: Plugins
In reply to: [Embeds for YouTube] Warning appears on page after upgrade to WP 4.4.2marionpollmannceramics.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
Forum: Fixing WordPress
In reply to: Pagination not workingWow! thanks that finally did it. Thanks everyone for your expertise!
Forum: Fixing WordPress
In reply to: Pagination not workingActually, I take that back. it is still not changing the posts on the page, it just is not restricting them to the category.
Forum: Fixing WordPress
In reply to: Pagination not workingThanks 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 »'); ?> </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(); ?>Forum: Fixing WordPress
In reply to: Pagination not workingHi Digico,
Sadly, nothing noticeable happened when I removed that line.Forum: Fixing WordPress
In reply to: Pagination not workingI 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 »'); ?> </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(); ?>Forum: Fixing WordPress
In reply to: Pagination not workingThanks 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.
Forum: Fixing WordPress
In reply to: Pagination not workingThat 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.
Forum: Fixing WordPress
In reply to: Pagination not workingThanks 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 »'); ?> </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; ?>Forum: Fixing WordPress
In reply to: Pagination not workingmmmmm. I spoke too soon. It appears that it is not just showing category 1. It is showing all posts. What did I do wrong?
Forum: Fixing WordPress
In reply to: Pagination not workingI think I got it. it should be this:
<?php
$query = new WP_Query( array( ‘cat’ => 1 ) );
?>