Forum Replies Created
- AuthorPosts
-
then again, sometimes it is actually quite easy. try v2.11.2.1
(i also edited the filters above to account for that if you need to)
>just add if category dont have menu item
not quite *that* simple (but i do remember thinking about – and then forgetting it)
will do . thanks for reminding meshould be somewhat better now as of v2.11.2
in v2.11.2 you now have a number of additional shortcodes to play with
see here: https://wordpress.org/plugins/wppizza/faq/ – > what are the available shortcodes
i have also added a bunch of classes and id’s to the article and header elements.
i.e an article has something like this “wppizza-article-special-offers-16”, where the last integer is the category id , whereas the bit before the id and after wppizza-article- bit is the category slug (so in this case “special-offers”). you’ll probably get the rest from hereone note though: as people might have customised their css using direct selectors somewhere, i cannot hardcode a wrapper div around this , however, there are a couple of filters you can use to add this like so (add the below to your themes functions.php:
/*************** wrap loop in div with category id added to classname ************/ add_action('wppizza_loop_outside_start', 'le879_wrap_loop_start',10,4); function le879_wrap_loop_start( $the_query, $options, $termSlug, $categoryId) { if($the_query->found_posts>0){/*only add div if >0 posts*/ print"<div class='some-prefix-".$categoryId."'>";/*or use the termslug or whatever*/ } } add_action('wppizza_loop_outside_end', 'le879_wrap_loop_end',10,1); function le879_wrap_loop_end($the_query) { if($the_query->found_posts>0){/*only add div if >0 posts*/ print"</div>"; } }
i figure you can work it out from here, but if you have questions just shout
just an update.
haven’t forgotten. just came across a couple of other things that would benefit from being looked at.another couple of days.
(actually making this work is easy, coding it so i don’t break possible customisations of this is the bit that needs to be considered/checked)>Do you know why this is happening?
can’t even begin to guess without a link….
hi,
that opening times widget is really only a simple helper. there are so many different ways to display opening times, that I don’t think I will spend any time to account for all those option programmatically (not anytime soon anyway).
So if you want to display your opening hours in a specific way other than how they would be displayed with that widget, you’ll have to just write and display them somewhere as you need them, sorry.
PS: I might have a look into at least account for the start of the week as set in the general wp settings, but that’s not going to be very high on the agenda at the moment
3 October, 2014 at 5:03 pm in reply to: additional field after selecting any menu item „Extra wish“ #5439>OR a textfield in Ingredients Window
already part of that extension….(just select –add textbox- from the dropdown in custom groups)
no worries.
will be fun (and probably useful to others too)
might aven be able to do this by tomorrow (unless unforeseen things crop up), but allow me a few daysi’ll keep you posted (there might be a couple of things you might have to be aware of…will let you know)
although you could mess around with the arguments in the ‘wppizza_filter_loop’ filter, it won’t loop over that page to show you all the headers (i.e. category names) all it would/could do is to show *all* items on one page. so this will only partially be helpful.
(essentially you’d be changing the query , but that doesn’t affect the header)easiest thing to do – and i wanted to do that for a while anyway but never got round to it – is for me to add the possibility of a shortcode that allows all categories to be displayed , so you dont have to think about it again. might take a couple of days though, depending on what else crops up.
while I’m at it, I might as well also add a class to the headers and articles that references the selected category – probably by id as the navigation has this already as id’s – which should help you in the second scenario when you need to show/hide things
although the navigation widget/shortcode was only meant to be used if you use templates, it should work in your scenario too…..(with a bit of creative js, showing/hiding things depending on class/id)
>there is some filter or loop to change that?
I might be wrong of course, but it sounds to me like you are using option 1 here
https://wordpress.org/plugins/wppizza/installation/
when you might want to consider option 2 perhaps (although this in turn might not suit your scenario. dunno . all depends on how you want to put things together)having said that – and thinking out loud for a bit – i suppose i could add/amend the shortcode attributes to automatically show all categories which is actually not a bad idea to start off with really to have that option….
>re2:
you will *always* need a parent of some sort (assuming that i understand you correctly)
this is not down to the plugin, but down to wordpress
again, depending on how it’s setup:the parent can be whatever you like though.
so this will work:
http://www.domain.com/somepagenameslug/pizzas
http://www.domain.com/somepagenameslug/pasta
etcthis:
http://www.domain.com/pizzas
http://www.domain.com/pasta
etc
WILL ONLY WORK IF you create those pages (i.e pizza and pasta) and then put the relevant shortcode on it
(of course in this case you will have to add new pages whenever you create a new category, so it presumably is not an option for you and i’m just saying this here for completeness sake)i don’t understand the following though (I’m probably missing something):
>to be only #cat name..
the category slug IS the cat name…(unless of course you changed the slug), no ?>1 how to print all menu items…
just put multiple shortcodes on the page
>2. how to use categories navigation without reloading the page?
you’ll need to write some script that does that
alternatively, put all the shortcodes on their own distinct pages and use/find a theme that loads all pages in one go and then just shows/hides whenever the appropriate link is clicked.
i know there are some / have seen some , but off the top off my head i don’t know which onegenerally speaking, your theme controls the size of the item title (on the h2 tag)
practically speaking, you could override this on the item titles particularly with plain css declarations.i.e something like
.wppizza-article-title{/*put your desired font size here*/}
30 September, 2014 at 10:07 pm in reply to: Emails not showing up from paypal gateway settings #5387https://www.wp-pizza.com/paypal-gateway-extension/ ->troubleshooting
on top of that i just noticed, when uninstalling it leaves all it’s junk in the database
that Captain Hour plugin decided that it’s a good idea to change the server/php timezone settings dynamically (and does not reset them when it’s done with whatever it is it’s doing)
i cannot even begin to tell you how bad an idea this is…..
that’s something they have to fix. got nothing to do with me
as it’s a premium plugin i can’t check this, but feel free to send a copy of it to dev[at]wp-pizza.com and i’ll check
first thing to check though.
did you set your timezones correctly ?>Why would he not get a few and I am getting a copy of them all?
very good point. you will have to speak to whoever deals with your emails and see what delivery reports/logs say etc…
maybe some got junked for some reason ?really nothing i can do my end I would have thought…..
right then , as of v4.5 you can now do this (might need some tweaking depending what exactly you need and how exactly you want this setup, but it should give you the idea)
please note – as of v4.5+ :
although this filter is still part of the plugin/extension (in case you want to do something really funky) if you want to custom sort the order of ingredients the way you like, you can now just drag and drop to get the order you desire…. - AuthorPosts