Digital experiences for all disciplines
Forum Replies Created
-
Posted in: We hit Power Elite.
-
We are using WP Super Cache. But I have cleared the cache and the problem persists.
There is no cache for logged in users btw.
This reply has been marked as private.I am sorry but that’s not possible. The site is in live mode ATM.
March 16, 2016 at 9:33 am in reply to: Menu in footer displaying Order #XXXXX instead of the menu item name #255728Thank you! 🙂
March 8, 2016 at 11:06 am in reply to: Menu in footer displaying Order #XXXXX instead of the menu item name #254097Yes exactly, I am referring to that file.
It looks like this right now:
<?php if ( have_posts() ) : the_post(); ?> <?php do_action( 'sf_page_content_before' ); ?> <div <?php post_class( 'clearfix' ); ?> id="<?php the_ID(); ?>"> <?php do_action( 'sf_page_content_start' ); ?> <?php the_content(); ?> <div class="link-pages"><?php wp_link_pages(); ?></div> <?php /** * @hooked - sf_page_comments - 10 **/ do_action( 'sf_page_content_end' ); ?> </div> <?php do_action( 'sf_page_content_after' ); ?> <?php endif; ?>
And the loop is never closed since no have_posts() are being run after the last post has been “printed”.
I suggest this instead:
<?php while ( have_posts() ) : the_post(); ?> <?php do_action( 'sf_page_content_before' ); ?> <div <?php post_class( 'clearfix' ); ?> id="<?php the_ID(); ?>"> <?php do_action( 'sf_page_content_start' ); ?> <?php the_content(); ?> <div class="link-pages"><?php wp_link_pages(); ?></div> <?php /** * @hooked - sf_page_comments - 10 **/ do_action( 'sf_page_content_end' ); ?> </div> <?php do_action( 'sf_page_content_after' ); ?> <?php endwhile; ?>
Although we know that there will only be one post WordPress is built with a loop, allowing for more than one post.
My suggestion adds a while loop instead of an if-statement, this will make have_posts() run one more time after the_post() has been called.
Since I can’t override the swift-framework files I have added my quickfix to the
atelier/page.php
file, adding ahave_posts()
beforeget_footer()
, closing the loop.March 3, 2016 at 9:24 pm in reply to: Menu in footer displaying Order #XXXXX instead of the menu item name #253534What I discovered was that in the page template you are running:
if( have_posts() ) : the_post();
and not
while( have_posts() ) : the_post();
This means that the code setting the query variable “in_the_loop” is not set to false.
This means that you are not ending “the loop”.
WooCommerce has a add_filter for “the_title” which checks for in_the_loop() to check if the title is the main page title.
“the_title” also runs for all the menu items in the footer menu.
I will do a quick-fix for my customer by overriding the page.php – file and adding have_posts() in the bottom of the file just before the footer code.
Please have a look at this.
March 3, 2016 at 3:45 pm in reply to: Menu in footer displaying Order #XXXXX instead of the menu item name #253466Is there any scope to test this all plugins deactivated leaving only Woo and Swift Framework active?
I have tested this on my local machine, I don’t want to deactivate everything on this site since it’s going to be published live soon. An important note is that I have tried WordPress twentythirteen with the same plugins by just switching to that theme and it don’t feature the same issue.– Can we have access to the login details with an order?
I have created an order for your login.– Swift Framework 2.0.2 has now been released, you look to be using 1.66?
That was true, I have updated now – still have the issue though 🙁This reply has been marked as private.I have a child theme.
This reply has been marked as private.Where should I submit the WP login credentials?
Works now!
It doesn’t seem to override the translations in the main theme for some reason…
Well in that guide you replace the file in wp-content/themes/atelier/languages/, this means that when I update atelier my language files will be overwritten, will it not?
The problem is that the parent theme, Atelier, is not fully translated in swedish / the translations are not correct. I want to fix these translations but I can’t load my own translations for the theme Atelier.
-
Posted in: We hit Power Elite.