v 3.0.1 braking in second language and when chosing more than 1 category
-
Hi,
Two days ago I finished a multi language page using the multi language plugin WPML. The content blocks I split into two columns using your Multiple content blocks.
Everything worked good before the two last updates (3.0) and (3.0.1)… On version (2.2.1) the extra blocks rendered immediately and also for the second language and depending the Category chosen.
For example, in single.php I use something like this:
<!-- NEWS --> <?php if (in_category('1') || in_category('12') ) { ?> <!-- THE LOOP --> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="news_pages"> <!-- input --> <div class="content"> <!-- entry images --> <div class="entry_images"> <?php the_block('images news'); ?> </div> <!-- end entry images --> <!-- entry text --> <div class="entry_text"> <?php the_content(); ?> </div> <!-- end entry text --> </div> <!-- end input --> </div> <?php endwhile; ?> <?php else : ?> <div class="single_pages"> No News Found </div> <?php endif; ?> <!-- END THE LOOP --> <!-- END NEWS --> <!-- WORK --> <?php } else { ?> <!-- THE LOOP --> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="single_pages"> <!-- input --> <div class="content"> <!-- entry images --> <div class="entry_images"> <?php the_block('images news'); ?> </div> <!-- end entry images --> <!-- entry text --> <div class="entry_text"> <?php the_content(); ?> </div> <!-- end entry text --> </div> <!-- end input --> </div> <?php endwhile; ?> <?php else : ?> <div class="single_pages"> No Project Found </div> <?php endif; ?> <!-- END THE LOOP --> <!-- END WORK --> <?php } ?>
[Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use a pastebin. As it stands, your posted code may now have been permanently damaged/corrupted by the forum’s parser.]
In version (3.0) I had to comment line 92 of assets/inc/class.MCB.php so it kept working also for the second language.
When I updated to (3.0.1) nothing worked anymore, not redering for second language and no second content block appearing when adding another category.
Now I switched back to the backup copy of version (3.0), buggy solution.
Another problem I have, when I switch back to backup copy of (2.2.1), the content for the extra content blocks is gone!
Let me know if there is a solution, thanks
https://www.ads-software.com/extend/plugins/multiple-content-blocks/
- The topic ‘v 3.0.1 braking in second language and when chosing more than 1 category’ is closed to new replies.