WPPizza – A Restaurant Plugin for WordPress › Support › General Support › Urgent bug (duplicated items)
- AuthorPosts
- 21 October, 2014 at 8:41 pm #5737
Hi,
we are still in testing this great plugin but we have found some strange bug!
after we have create the ten category and add items to this category the items been duplicated!!!
you can see in the next pic:and here is in the back. you can see only 3 products in one category:
linkbefore we have created this category all works great without any duplicate items.
i using shortcode to print all the items from all the categories<?php echo do_shortcode('[wppizza category="!all" ]'); ?>
21 October, 2014 at 8:45 pm #5740Hi
from the screenshot you posted i can’t see anything wrong there
you have three different items, all of which are assigned to the same categorywhere is the problem ? am i missing something ?
21 October, 2014 at 8:47 pm #5741PS: don’t know why you are using “echo do_shortcode” instead of just the plain shortcode on a page…but that’s up to you. just wondered
22 October, 2014 at 5:51 am #5744Hi Olly,
yes some how not all my text with the second screenshot was posted. here is what printing in the front page from this categoryfor your question about “echo do_shortcode”. as i told you before we are using one page template so i need to print all the menu items from specific section in the template.
22 October, 2014 at 6:09 am #5746the link to the pic not posting from the “link button”. where is the direct link:
[link redacted][admin] that link had porn adverts on it [/admin]
22 October, 2014 at 9:01 am #5751by the way, if i try to add item to exist category all works fine. if i try to create new category the problem become the same to every new category.
its seems like from the 11 category it make this bug.
22 October, 2014 at 9:51 am #5752sounds to me like you are putting a loop into a loop
i would suggest you first just put the shortcode on a page as opposed to using
<?php echo do_shortcode('[wppizza category="!all" ]'); ?>
in a template somewhere and see what happens
23 October, 2014 at 7:35 am #5756Hi,
i don’t have any loop. my code is simple :<div> <?php echo do_shortcode("[wppizza category='!all' ]"); ?> </div>
the strange thing is that after i have remove this php code and then paste it back, all start working normally.
23 October, 2014 at 10:39 am #5762have you tried just putting the plain shortcode on a page somewhere ?
(i.e create a page and put [wppizza category=’!all’ ] in the content area and save)(ps: that shortcode is a loop in itself by the way – i .e it loops through items in category(ies))
30 October, 2014 at 8:09 pm #5927i put the shortcode in some page and the same bug!
i send you in private me website.
let me know what else you need to look at the problem.Thanks
30 October, 2014 at 8:39 pm #5928from what i can see the loop add duplicate items in the last category the html looks
<div class=”cat-menu catID-13″>…</div>
<div class=”cat-menu catID-14″>…</div>
<div class=”cat-menu catID-15″>…</div>
and then:
<div class=”cat-menu catID”>…</div>
<div class=”cat-menu catID”>…</div>
<div class=”cat-menu catID”>…</div>
<div class=”cat-menu catID”>…</div>without category id…
30 October, 2014 at 10:43 pm #5929This reply has been marked as private.30 October, 2014 at 10:53 pm #5930I said a couple of things in private above.
in short though, i would need to know what the original theme is your customised version is derived from to see if this issue is there too or just in the customisation31 October, 2014 at 6:11 am #5931This reply has been marked as private.31 October, 2014 at 9:10 am #5932This reply has been marked as private.3 November, 2014 at 12:53 pm #5970This reply has been marked as private.3 November, 2014 at 1:28 pm #5973how is your code js ?
in any case, i used a non customised version of your theme and it works fine.
if this really were the case / a problem, i am sure i would have heard from other about this by now…if someone else reports this too, I shall check again – nobody is perfect – but as it stands i can’t see anything that needs fixing my end
3 November, 2014 at 1:31 pm #5974furthermore, looking at the link you sent me to your site a while back , i cannot see any duplicates in the source of the page, so I don’t know what your javascript you are referring to is actually supposed to be doing
however, if it works for you than that’s fine by me
4 December, 2014 at 3:25 pm #6417There is a bug when i use the !all function too
I have to use the categories=’individual,categories,toprevent,theloop’4 December, 2014 at 3:28 pm #6422>There is a bug when i use the !all function too
please – next time – start your own topic
in the meantime, please send me a screenshot of your categories and which version of the plugin you are using or – preferably – a link to your site
- AuthorPosts
- The topic ‘Urgent bug (duplicated items)’ is closed to new replies.