• Resolved Outdoorsmen

    (@outdoorsmen)


    I really like your plugin. You did an excellent job.

    I would like to be able to show the Sub-Categories in the menu using the shortcode [wppizza category=’!all’].

    When you use the [wppizza category=”subcategory-slug”] shortcode, the title changes to upper-case and it has a different font size. Also, you would have to list each category separately in a shortcode.

    Is this possible to list the sub-categories in the menu like a sub-category should? Something similar to the way the widget lists the navigation?

    Thanks

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author ollybach

    (@ollybach)

    >I would like to be able to show the Sub-Categories in the menu using the shortcode
    what’s stopping you ? the !all shows ALL categories (sub or not)

    >the title changes to upper-case and it has a different font size.
    that’s your theme doing this. you will have to adjust the css as required.
    wppizza does not set any particular css on the title (h1) tag (but it ads a wppizza-entry-title class you could target)

    >Is this possible to list the sub-categories in the menu like a sub-category should?
    your “wp-> appearance ->menu” appearance is – again – controlled by your theme. if you have subitems set there then your theme sets indentations (or not as the case may be)

    Thread Starter Outdoorsmen

    (@outdoorsmen)

    Thank you for your response.

    I think you misunderstood which menu I was talking about. I was not referring to the WordPres menus, but the product menu of your plugin.

    For example: I have a category of Drinks. I would like to list under Drinks the 4 subcategories: Milk, Sodas, Juices and Beer. When I create these using the Parent category of Drinks, they are not listing when using the [wppizza category=’!all’] shortcode.

      Pizza

    • Cheese
    • Meat Lover’s
    • Combo
      Drinks

    • Milk
    • Sodas
    • Juices
    • Beer

    I have tried setting something up like I want using the wppiza navigation widget but when you select an item, it takes you to a full page which has no sidebar to navigate to make another selection.

    Again, Great plugin. Thanks

    P.s.

    You might consider putting US dollar amounts on your extensions

    • This reply was modified 9 years, 8 months ago by Outdoorsmen.
    • This reply was modified 9 years, 8 months ago by Outdoorsmen.
    Thread Starter Outdoorsmen

    (@outdoorsmen)

    I timed out on editing my last post. I wanted to show the “Menu Items” under Drinks >> Milk, Chocolate and White, then using the “meal Sizes” for drink size.

    I hope I’ve explained this properly.

    Basically, I need to be able to show at least one subcategory.

    Thanks

    Plugin Author ollybach

    (@ollybach)

    the wppiza navigation widget (using wp_list_categories) is ONLY of use if you use option 2 (https://www.wp-pizza.com/topic/things-to-do-on-first-install/)

    however, it is filterable like so

    
    	add_filter('wppizza_filter_navigation', array( $this, 'my_filter'),10);
    	function my_filter($args){
    		// -> do stuff
    		return $args;
    	}
    

    which you could use to write/add your own walker

    Thread Starter Outdoorsmen

    (@outdoorsmen)

    I appreciate your response. I am not looking to modify the navigation widget.

    I would like to have the WpPizza sub-categories listed when using the [wppizza category=’!all’] shortcode. Is that possible?

    Plugin Author ollybach

    (@ollybach)

    >I am not looking to modify the navigation widget.
    if you want an “automatic” listing of (sub)categories so to speak, you will have to …

    (you would not modify it as such of course, but use a filter to make it output things as you want them to be output)

    Plugin Author ollybach

    (@ollybach)

    of course, if it does not need to be “automatic” you can just add links whereever and however (but my guess is that’s not what we/you are talking about)

    Thread Starter Outdoorsmen

    (@outdoorsmen)

    What is driving me nuts about this plugin is the shortcode [wppizza category=’!all’].

    The reason for wanting to use the sub-category is because the sort order of the categories change on their own. I can drag & drop the order that I want and it will reset where it places the categories in the numeric-alphabetic order of the name. This places Beer before Drinks, etc.

    A workaround would be to place all of the shortcodes in-order between the quotes. This doesn’t work well since the shortcode does not automatically update when a new category is added.

    Would it be possible to add an Order Number to the Edit Category page so we can set the order? If you’re not going to allow sub-categories, can you please remove the parent drop-down selector so people don’t try to use it?

    Ideally, I would love to see the [wppizza category=’!all’] shortcode work with sub-categories and the category order stay how it was placed.

    Thank you

    Plugin Author ollybach

    (@ollybach)

    > because the sort order of the categories change on their own.
    no , they don’t (not by default). !all shows categories in the order set (unless you have some scripting somewhere that changes this)

    >Would it be possible to add an Order Number to the Edit Category
    if it were, it would be there as it would be 1000% easier than the drag/drop thing. admittedly I have no idea why wordpress does not provide this as a core function anyway, but as it is, it unfortunately doesnt

    >can you please remove the parent drop-down selector so people don’t try to use it?
    no, because it works just fine for what it is intended for

    Thread Starter Outdoorsmen

    (@outdoorsmen)

    > because the sort order of the categories change on their own.
    no , they don’t (not by default). !all shows categories in the order set (unless you have some scripting somewhere that changes this)

    This happens when your plugin is the only one activated. If you set the order and add/edit a category, when you go back to the the categories page, they have all rearranged in the numeric-alphabetic order.

    It may be a WordPress issue. It’s quite annoying when there are quite a few categories to deal with. The alternative would be for you to create your own categories table where you had a column for the display order.

    Another solution might be to figure out a way to use a plugin like Category Order and Taxonomy Terms Order with the WpPizza categories.

    >can you please remove the parent drop-down selector so people don’t try to use it?
    no, because it works just fine for what it is intended for

    OK, I’m a bit confused. You say “it works just fine for what it is intended for”. It’s intended to set sub-categories. Your plugin does not allow you to display sub-categories.

    It looks like we have gone full circle since what started this post was asking to be able to show the sub-categories.

    Plugin Author ollybach

    (@ollybach)

    i can only re-iterate the following:
    the !all shortcode shows wppizza categories and subcategories in the order set
    have you tried with a default theme (like twentysixteen for example ?)
    maybe your theme overrides some arguments somewhere

    >Your plugin does not allow you to display sub-categories.
    that’s simply not true

    Plugin Author ollybach

    (@ollybach)

    having just read and re-read your posts, maybe the following will make more sense (am just trying to understand what it is you are after as it’s still not really 100% clear to me to be honest ):

    a) as mentioned the !all shortcode just displays all cats and subcats on a page in the way they are entered/sorted (at least it should , unless something interferes somewhat) regardless of what else it is you do

    b) the navigation widget provides links to cats/subcat
    HOWEVER, for this to do anything useful (and – for example – to only show items in a subcategory if you click on the relevant link in that widget) you have to set up the pages / templates as mentioned in “https://www.wp-pizza.com/topic/things-to-do-on-first-install/” -> option 2 to make it work with your theme

    in case that’s where the confusion comes from or if that is what you were expecting, clicking on a link in that widget will not filter the items on the page that has the !all shortcode but will display another page/link with only the items belonging to that link (and unless you have set up the template as indicated above it will unlikely display any sidebars etc ).

    On th eother hand, if you want that navigation widget (it just uses as simple wp_list_categories function) to actually filter what is on the page that has the !all shortcode , you would have to provide your own walker to make it work that way (or of course just create your own version of this) and – possibly – some js that goes with it

    does the above make more sense now ?

    • This reply was modified 9 years, 8 months ago by ollybach.
    Plugin Author ollybach

    (@ollybach)

    PS: the navigation widget is not “intended to SET sub-categories” it is intended to LINK to a page that displays the subcategory

    Thread Starter Outdoorsmen

    (@outdoorsmen)

    I really appreciate all of the effort you’ve done to try and figure this out.

    I have determined this must be a WordPress issue. As long as I do not use the “Back to Categories” link on a category edit page, the order will remain. It was when I used that link that the order was changed. I also use the above mentioned plugin to reset the order since it saves the order that I want separately.

    After deactivating and reactivating all of my plugins, the subcategories now appear. I suspect this was some sort of javascript load glitch. I was also expecting the subcategories to appear indented but as long as I have the correct order, I’m satisfied.

    As far as the navigation widget goes, I am using option 1 and 2 together with the standard WordPress custom menu widget. It has a professional look and I can indent the subcategories in the listing.

    Feel free to mark this as resolved. I will probably start a new thread soon about the irritating “phpmailer: Could not instantiate mail function.” error. It was working beautifully and now it doesn’t want to work. It looks like some sort of SPAM issue.

    Thank You very much.

    P.S.

    USD prices for your extensions would be nice.

    Thread Starter Outdoorsmen

    (@outdoorsmen)

    FYI,

    The “phpmailer: Could not instantiate mail function.” error was caused by my host flagging it as spam. They had to white-list the site. All works fine now.

    Is there a better way for your plugin to be less technical with this error message. Most customers are not going to understand. It would be nice if we could write our own failed email message and be able to see what the error was. BTW, this does not show up in the debug logs.

    Thanks again.

Viewing 15 replies - 1 through 15 (of 16 total)

The topic ‘Sub-Categories don’t display?’ is closed to new replies.