Vegard S.
Forum Replies Created
-
Forum: Plugins
In reply to: [Query Loop Load More] Load More only loads one of the next pagesHi @joeshock!
I’ve been testing this a bit today. Can you confirm that you have permalinks set to something other than “Plain” in Settings->Permalinks? I’m running into issues with multiple queries when the permalinks aren’t “pretty”.
Is there a way I can adjust ID that somewhere?
It’s very easy to end up with duplicate queryID’s as it’s carried over on copy/paste, for example. Unfortunately, the queryID is not exposed in the block settings. You’ll need to switch to Code View and look for the
queryIDattribute on the block:Forum: Fixing WordPress
In reply to: When clicking on posted in link, categories aren't filteringYes. Maybe it’s to simple, something might be missing ๐
Hard to say what i might be excactly. You have a sidebar listing all your posts, try disabling the recent posts widget. You might also try putting this:
<?php wp_reset_query(); ?>at the end of your sidebar.php.There are some ways to debug Wp_Query, search the forum and google.
Forum: Fixing WordPress
In reply to: When clicking on posted in link, categories aren't filteringOk, then it is something messing with your query. Do you know of anything that might do that in maybe the functions.php file or somwhere else in your theme? You might also try to change theme to a standard wordpress theme to see if it works then.
Forum: Fixing WordPress
In reply to: When clicking on posted in link, categories aren't filteringOk, how does your index.php file look?
Just for testing purposes(!). Try putting this before
if ( have_posts() )in your index file:
<?PHP query_posts(‘cat=INSERT_ID_OF_MOVING_TIPS_CATEOGRY’); ?>Forum: Fixing WordPress
In reply to: Why aren't images showing on up one one version of the same siteIt looks like it tries to load the images from a CDN (http://cdn.ussinnovate.com/mx/).This is how your image url looks like, and i doesn’t work:
http://cdn.ussinnovate.com/mx/wp-content/uploads/2014/10/gps1.jpg
But this does work:
http://mx.ussinnovate.com/wp-content/uploads/2014/10/gps1.jpgIt might be a setting or a plugin overriding your media settings.
Forum: Fixing WordPress
In reply to: Shop without price with stock managementHi!
Check out WooCommerce: https://wordpress.org/plugins/woocommerce/
Forum: Fixing WordPress
In reply to: When clicking on posted in link, categories aren't filteringNo, then it will use index.php (Check out WordPress Template Hiarchy: https://developer.wordpress.org/themes/basics/template-hierarchy/) ๐
Try uploading (or duplicating from a standard WordPress Theme) a category.php page to your theme’s folder.
This is a modified version of twentyfourteens category.php:
<?php get_header(); ?> <div id='page_wrapper'> <div id='page'> <div id='slider_wrapper' > <?php get_sidebar(); ?> <?php if ( have_posts() ) : ?> <div id='wrapper_right'> <div id="content"> <div id="nav-above" class="navigation"> <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">ยซ</span> %title' ) ?></div> <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">ยป</span>' ) ?></div> </div><!-- #nav-above --> <header class="archive-header"> <h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentyfourteen' ), single_cat_title( '', false ) ); ?></h1> <?php // Show an optional term description. $term_description = term_description(); if ( ! empty( $term_description ) ) : printf( '<div class="taxonomy-description">%s</div>', $term_description ); endif; ?> </header><!-- .archive-header --> <?php // Start the Loop. while ( have_posts() ) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php the_title( '<header class="entry-header"><h1 class="entry-title">', '</h1></header><!-- .entry-header -->' ); ?> <div class="entry-content"> <?php the_content(); wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>', ) ); edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> </div><!-- .entry-content --> </article><!-- #post-## --> <?PHP endwhile; ?> </div></div> <?PHP else: ?> <div id='wrapper_right'> <div id="content"> <header class="page-header"> <h1 class="page-title"><?php _e( 'Nothing Found', 'twentyfourteen' ); ?></h1> </header> <div class="page-content"> <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?> <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfourteen' ), admin_url( 'post-new.php' ) ); ?></p> <?php elseif ( is_search() ) : ?> <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfourteen' ); ?></p> <?php get_search_form(); ?> <?php else : ?> <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentyfourteen' ); ?></p> <?php get_search_form(); ?> <?php endif; ?> </div><!-- .page-content --> </div> </div> <?PHP endif; ?> ?> </div></div></div> <?php get_footer();Forum: Fixing WordPress
In reply to: Why aren't images showing on up one one version of the same siteHow did you duplicate your site? Are you one the same server but in a diffrent folder? Did you do any Search and Replace in your database when you duplicated your site? Also, please share a link to your site if possible ๐
Forum: Fixing WordPress
In reply to: When clicking on posted in link, categories aren't filteringHi Patrick!
Is this the code for single.php or archive.php ? Are you using any plugins on your site?
Also you could try to go to Settings->Permalinks and press “Save Changes” to see if everything checks out there.
Try replacing this code:
<span class="title"><a href="<?php the_permalink(); ?>" title="go to <?php the_title(); ?>"><?php the_title(); ?></a></span><span class="category"><?php the_category(' + '); ?></span> <a href="<?php the_permalink(); ?>" title="go to <?php the_title(); ?>"><?php the_post_thumbnail('240x160'); ?></a>With this:
<?PHP $posts_no_links = array(1, 2, 3); //Put your posts ID's without link here if(in_array(get_the_ID(), $posts_no_links)) { ?> <span class="title"><?php the_title(); ?></span><span class="category"><?php the_category(' + '); ?></span> <?php the_post_thumbnail('240x160'); ?> <?PHP } else { ?> <span class="title"><a href="<?php the_permalink(); ?>" title="go to <?php the_title(); ?>"><?php the_title(); ?></a></span><span class="category"><?php the_category(' + '); ?></span> <a href="<?php the_permalink(); ?>" title="go to <?php the_title(); ?>"><?php the_post_thumbnail('240x160'); ?></a> <?PHP } ?>Forum: Fixing WordPress
In reply to: Some bottons aren't working on pages editor.Try deactivating all plugins. If it works then, activate the plugins one by one to see wich one is causing troubles.
Forum: Fixing WordPress
In reply to: Comments get 404 error wp-comments-post.phpOk. It’s very odd since it’s working fine here.
Have you tried commenting from a diffrent browser, without beeing logged in?
Forum: Fixing WordPress
In reply to: Sidebar disappeared after installing woocommerce pluginYou’re welcome ๐
Forum: Fixing WordPress
In reply to: Comments get 404 error wp-comments-post.phpAre you using any security og spam plugins? Some may block comments.
Forum: Fixing WordPress
In reply to: Sidebar disappeared after installing woocommerce pluginTry removing the comment on second last line:
<?php get_sidebar(); ?>There might be reason why they have commented it out. But you can try and see what happens ๐