muttznutz
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] ‘Recent posts’ hidden on Shop pageHi Mirko
What I’ve discovered about the Shop page:-
The problem with the sidebars was caused by adding woocommerce theme support in my functions file. When I switch this off, then the sidebars show the content.
I don’t know why this is, but I’ve got things working, and it seems to have no other adverse effects.-
In this mode woocommerce redirects the page content to show the shop entries within the page template. However, this works with get_content() in the template loop, but not the_content().
-
In my theme, this doesn’t show entries for the product categories – either on their own, or when selecting “categories and products” in the “Appearance” section. I’ll be trying to work out why.
As an aside, I found the StoreFront theme helpful, but the twenty-twentyone theme was more accessible than twenty-twentytwo in terms of tracking down the problems.
All the best,
Drew(Sorry it’s taken so long – I’ve been updating my theme – which sent me down a lot of rabbit holes).
Forum: Plugins
In reply to: [WooCommerce] ‘Recent posts’ hidden on Shop pageThanks, Mirko
I switched my theme over to Storefront and couldn’t replicate the problem.
So I’m now working on my theme to figure out why they’re different (and to try some alternative solutions).
Thanks for your help,
DrewForum: Plugins
In reply to: [WooCommerce] ‘Recent posts’ hidden on Shop pageThanks, Mirko
It’s a bit of a job to switch themes (I’ve tried it before, and things got broken !).
I’ll try it in a couple of days, when I’ll have time to concentrate.What I have done is to revert to the standard archive-product.php template, just hooking the menu processing in to the ‘woocommerce_before_main_content‘ action.
(This is probably a better appproach anyway, going forward).
I’ve got the same results – it’s fine for products with individual product categories, but blocks all but the product post-type at product category level.
So it looks like a filter (or maybe a query var) is set somewhere.I’ve got the output from another test I tried – on the second of the widgets in the example above – the “Recent Posts” section. I removed the category filter, and added ‘products’ in to the post types. All of the entries which show are products.
<aside id="sticky-posts-6" class="menu-item widget widget_ultimate_posts"><h2 class="widget-title">Recent Posts</h2> <ul> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/product/boudoir-noir-56/" title="Boudoir Noir #56"> Boudoir Noir #56 </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/product/boudoir-noir-99/" title="Boudoir Noir #99"> Boudoir Noir #99 </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/product/boudoir-noir-32/" title="Boudoir Noir #32"> Boudoir Noir #32 </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/product/boudoir-noir-64/" title="Boudoir Noir #64"> Boudoir Noir #64 </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/product/danseuses-27/" title="Danseuses #27"> Danseuses #27 </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/product/danseuses-26/" title="Danseuses #26"> Danseuses #26 </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/product/danseuses-16/" title="Danseuses #16"> Danseuses #16 </a> </p> </div> </li> </ul> </aside>Thanks again for your help,
DrewForum: Plugins
In reply to: [WooCommerce] ‘Recent posts’ hidden on Shop pageThanks for gettting back to me, @rainfallnixfig
As requested, here’s a snipboard link to the page that isn’t working :
https://snipboard.io/2cTEab.jpg
… And to a link where it does work :
https://snipboard.io/ZkRdG6.jpgBoth are generated from the same ‘archive-product’ template (a locally overridden template).
Also, here’s the HTML for a working menu :
<div id="menu-container" class="menu-panel panel-display-off"> <div id="menu-control" class="menu-area"> <aside id="sticky-posts-5" class="widget widget_ultimate_posts"> <h2 class="widget-title">Portfolios</h2> <ul> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/showcase/main-portfolio/" title="Main Portfolio"> Main Portfolio </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/showcase/danseuses-series/" title="“Danseuses” Series"> “Danseuses” Series </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/showcase/boudoir-noir/" title="Boudoir Noir"> Boudoir Noir </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/showcase/pinhole-project/" title="Pinhole project"> Pinhole project </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/showcase/isolation/" title="“Isolation” series"> “Isolation” series </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/showcase/etudes-series/" title="“Études” series"> “Études” series </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/showcase/tarot/" title="Tarot"> Tarot </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/showcase/the-water-baby/" title="The Water Baby"> The Water Baby </a> </p> </div> </li> </ul> </aside><aside id="sticky-posts-6" class="widget widget_ultimate_posts"><h2 class="widget-title">Recent Posts</h2> <ul> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/packages/sample-package/" title="Sample package"> Sample package </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/i-suppose-it-all-goes-back-to-muybridge/" title="I suppose it all goes back to Muybridge …"> I suppose it all goes back to Muybridge … </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/west-midlands-open-2022/" title="West Midlands Open 2022"> West Midlands Open 2022 </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/beautica-magazine-publication/" title="Beautica Magazine – Publication"> Beautica Magazine – Publication </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/heseltine-gallery-focus-on-photography-exhibition-march-2022/" title="Heseltine Gallery – [Focus] on Photography exhibition, March 2022"> Heseltine Gallery – [Focus] on Photography exhibition, March 2022 </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/anvane-sensual-magazine-publication/" title="Anvane Sensual Magazine – Publication"> Anvane Sensual Magazine – Publication </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/tsym-sensual-magazine-publication/" title="TSYM Sensual magazine – Publication"> TSYM Sensual magazine – Publication </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/artefact-gallery-open-exhibition/" title="Artefact Gallery – Open Exhibition"> Artefact Gallery – Open Exhibition </a> </p> </div> </li> </ul> </aside> <aside id="extended-categories-3" class="widget widget_extended-categories"> <!-- AVH Extended Categories version 3.10.0-dev.1 | http://blog.avirtualhome.com/wordpress-plugins/ --> <h2 class="widget-title">Categories</h2> <ul> <li class="cat-item cat-item-7"><div class="avhec-widget-line"><a href="http://localhost:8888/artdevt/category/portfolios/" title="View all posts filed under Portfolios">Portfolios</a></div> </li> <li class="cat-item cat-item-8"><div class="avhec-widget-line"><a href="http://localhost:8888/artdevt/category/news/" title="View all posts filed under News">News</a></div> </li> <li class="cat-item cat-item-9"><div class="avhec-widget-line"><a href="http://localhost:8888/artdevt/category/policies/" title="View all posts filed under Policies">Policies</a></div> </li> <li class="cat-item cat-item-21"><div class="avhec-widget-line"><a href="http://localhost:8888/artdevt/category/about/" title="View all posts filed under About">About</a></div> </li> <li class="cat-item cat-item-27"><div class="avhec-widget-line"><a href="http://localhost:8888/artdevt/category/exhibitions/" title="View all posts filed under Exhibitions & Publications">Exhibitions & Publications</a></div> </li> </ul></aside><aside id="lc_taxonomy-4" class="widget widget_lc_taxonomy"><div id="lct-widget-project-container" class="list-custom-taxonomy-widget"><h2 class="widget-title">Projects</h2><ul id="lct-widget-project"> <li class="cat-item cat-item-10"><a href="http://localhost:8888/artdevt/projects/kinomorph/">Kinomorph</a> </li> <li class="cat-item cat-item-79"><a href="http://localhost:8888/artdevt/projects/boudoir-noir/">Boudoir Noir</a> </li> <li class="cat-item cat-item-11"><a href="http://localhost:8888/artdevt/projects/water-baby/" title="An underwater shoot with model Rebecca Tun">The Water Baby</a> </li> <li class="cat-item cat-item-25"><a href="http://localhost:8888/artdevt/projects/pinhole/">Pinhole</a> </li> <li class="cat-item cat-item-58"><a href="http://localhost:8888/artdevt/projects/isolation/">Isolation</a> </li> </ul> </div></aside> <aside id="sticky-posts-4" class="widget widget_ultimate_posts"> <h2 class="widget-title">About …</h2> <ul> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/about-drew/" title="About Drew"> About Drew </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/exhibitions/" title="Exhibitions and Publications"> Exhibitions and Publications </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/newsletter-subscription/" title="Newsletter Subscription"> Newsletter Subscription </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/instagram/" title="Instagram"> Instagram </a> </p> </div> </li> <li class=""> <div class="upw-content"> <p class="post-title"> <a href="http://localhost:8888/artdevt/contact-me/" title="Contact Me…"> Contact Me… </a> </p> </div> </li> </ul> </aside> <aside id="linkcat-100" class="widget widget_links"> <h2 class="widget-title">My Other Sites</h2> <ul class='xoxo blogroll'> <li><a href="https://drewk.photo" rel="me" title="My Fashion, Beauty and Underwater photography">My Main Website</a></li> <li><a href="https://drewk.photo/packages/about-the-studio/" rel="me" title="Studio address, access and facilities">About the Studio</a></li> </ul> </aside> </div> </div>… And the menu HTML for the problem page
<div id="menu-container" class="menu-panel panel-display-off"> <div id="menu-control" class="menu-area"> <aside id="sticky-posts-5" class="widget widget_ultimate_posts"> <h2 class="widget-title">Portfolios</h2> <p><p>No posts found.</p> </p> </aside> <aside id="sticky-posts-6" class="widget widget_ultimate_posts"> <h2 class="widget-title">Recent Posts</h2> <p><p>No posts found.</p> </p> </aside> <aside id="extended-categories-3" class="widget widget_extended-categories"> <!-- AVH Extended Categories version 3.10.0-dev.1 | http://blog.avirtualhome.com/wordpress-plugins/ --> <h2 class="widget-title">Categories</h2> <ul> <li class="cat-item cat-item-7"><div class="avhec-widget-line"><a href="http://localhost:8888/artdevt/category/portfolios/" title="View all posts filed under Portfolios">Portfolios</a></div> </li> <li class="cat-item cat-item-8"><div class="avhec-widget-line"><a href="http://localhost:8888/artdevt/category/news/" title="View all posts filed under News">News</a></div> </li> <li class="cat-item cat-item-9"><div class="avhec-widget-line"><a href="http://localhost:8888/artdevt/category/policies/" title="View all posts filed under Policies">Policies</a></div> </li> <li class="cat-item cat-item-21"><div class="avhec-widget-line"><a href="http://localhost:8888/artdevt/category/about/" title="View all posts filed under About">About</a></div> </li> <li class="cat-item cat-item-27"><div class="avhec-widget-line"><a href="http://localhost:8888/artdevt/category/exhibitions/" title="View all posts filed under Exhibitions & Publications">Exhibitions & Publications</a></div> </li> </ul></aside><aside id="lc_taxonomy-4" class="widget widget_lc_taxonomy"><div id="lct-widget-project-container" class="list-custom-taxonomy-widget"><h2 class="widget-title">Projects</h2><ul id="lct-widget-project"> <li class="cat-item cat-item-10"><a href="http://localhost:8888/artdevt/projects/kinomorph/">Kinomorph</a> </li> <li class="cat-item cat-item-79"><a href="http://localhost:8888/artdevt/projects/boudoir-noir/">Boudoir Noir</a> </li> <li class="cat-item cat-item-11"><a href="http://localhost:8888/artdevt/projects/water-baby/" title="An underwater shoot with model Rebecca Tun">The Water Baby</a> </li> <li class="cat-item cat-item-25"><a href="http://localhost:8888/artdevt/projects/pinhole/">Pinhole</a> </li> <li class="cat-item cat-item-58"><a href="http://localhost:8888/artdevt/projects/isolation/">Isolation</a> </li> </ul> </div></aside> <aside id="sticky-posts-4" class="widget widget_ultimate_posts"> <h2 class="widget-title">About …</h2> <p><p>No posts found.</p> </p> </aside> <aside id="linkcat-100" class="widget widget_links"> <h2 class="widget-title">My Other Sites</h2> <ul class='xoxo blogroll'> <li><a href="https://drewk.photo" rel="me" title="My Fashion, Beauty and Underwater photography">My Main Website</a></li> <li><a href="https://drewk.photo/packages/about-the-studio/" rel="me" title="Studio address, access and facilities">About the Studio</a></li> </ul> </aside> </div> </div>(The Ultimate Posts widget shows ‘No posts found’ – other widgets just don’t appear if they’ve no content)
Thanks,
DrewThanks, Elvis @elviiso
I understand about warning messages, but leave them switched on – they can be a useful ‘canary’ for problems with my theme.The page is in my admin area, so it’s not something that’s shareable, I’m afraid.
However, it’s the basic “Add Album” dashboard option that generates it.In terms of the process :
I created an album, named it, and added 25 galleries, dragging them to change the sequence.
During the time I was editing it, 9 instances of the error were generated (so I’d speculate that it may be generated on “autosave”).
Here are the errors. They’re all the same, but you’ll see that they’re distributed therough the time I was editing, rather than in a single event.[06-Jun-2022 20:16:43 UTC] PHP Notice: Function map_meta_cap was called <strong>incorrectly</strong>. The post type foogallery-album is not registered, so it may not be reliable to check the capability "edit_post" against a post of that type. Please see <a href="https://ww.wp.xz.cn/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 4.4.0.) in /var/www/vhosts/<snip>/wp-includes/functions.php on line 5831 [06-Jun-2022 20:16:59 UTC] PHP Notice: Function map_meta_cap was called <strong>incorrectly</strong>. The post type foogallery-album is not registered, so it may not be reliable to check the capability "edit_post" against a post of that type. Please see <a href="https://ww.wp.xz.cn/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 4.4.0.) in /var/www/vhosts/<snip>/wp-includes/functions.php on line 5831 [06-Jun-2022 20:17:14 UTC] PHP Notice: Function map_meta_cap was called <strong>incorrectly</strong>. The post type foogallery-album is not registered, so it may not be reliable to check the capability "edit_post" against a post of that type. Please see <a href="https://ww.wp.xz.cn/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 4.4.0.) in /var/www/vhosts/<snip>/wp-includes/functions.php on line 5831 [06-Jun-2022 20:17:28 UTC] PHP Notice: Function map_meta_cap was called <strong>incorrectly</strong>. The post type foogallery-album is not registered, so it may not be reliable to check the capability "edit_post" against a post of that type. Please see <a href="https://ww.wp.xz.cn/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 4.4.0.) in /var/www/vhosts/<snip>/wp-includes/functions.php on line 5831 [06-Jun-2022 20:17:43 UTC] PHP Notice: Function map_meta_cap was called <strong>incorrectly</strong>. The post type foogallery-album is not registered, so it may not be reliable to check the capability "edit_post" against a post of that type. Please see <a href="https://ww.wp.xz.cn/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 4.4.0.) in /var/www/vhosts/<snip>/wp-includes/functions.php on line 5831 [06-Jun-2022 20:17:59 UTC] PHP Notice: Function map_meta_cap was called <strong>incorrectly</strong>. The post type foogallery-album is not registered, so it may not be reliable to check the capability "edit_post" against a post of that type. Please see <a href="https://ww.wp.xz.cn/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 4.4.0.) in /var/www/vhosts/<snip>/wp-includes/functions.php on line 5831 [06-Jun-2022 20:18:14 UTC] PHP Notice: Function map_meta_cap was called <strong>incorrectly</strong>. The post type foogallery-album is not registered, so it may not be reliable to check the capability "edit_post" against a post of that type. Please see <a href="https://ww.wp.xz.cn/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 4.4.0.) in /var/www/vhosts/<snip>y/wp-includes/functions.php on line 5831 [06-Jun-2022 20:18:28 UTC] PHP Notice: Function map_meta_cap was called <strong>incorrectly</strong>. The post type foogallery-album is not registered, so it may not be reliable to check the capability "edit_post" against a post of that type. Please see <a href="https://ww.wp.xz.cn/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 4.4.0.) in /var/www/vhosts/<snip>/wp-includes/functions.php on line 5831 [06-Jun-2022 20:18:50 UTC] PHP Notice: Function map_meta_cap was called <strong>incorrectly</strong>. The post type foogallery-album is not registered, so it may not be reliable to check the capability "edit_post" against a post of that type. Please see <a href="https://ww.wp.xz.cn/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 4.4.0.) in /var/www/vhosts/<snip>/wp-includes/functions.php on line 5831 [06-Jun-2022 20:19:11 UTC] PHP Notice: Function map_meta_cap was called <strong>incorrectly</strong>. The post type foogallery-album is not registered, so it may not be reliable to check the capability "edit_post" against a post of that type. Please see <a href="https://ww.wp.xz.cn/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 4.4.0.) in /var/www/vhosts/<snip>/wp-includes/functions.php on line 5831I subsequently went in to edit the album, and the messages were generated for as long as the album was open, even if I wasn’t changing anything.
Hope this helps,
DrewForum: Plugins
In reply to: [Media Library Assistant] Mapping to attachment categoriesHi David,
Thanks for your prompt reply.
And (incidentally) for clearly explaining your design decisions 🙂
I’ll change the categories I output from my DAM to match the lower case name, accordingly.
I’m happy for the topic to marked as resolved.Just for context, I’m migrating my portfolios (000s of images) from NextCellent (previously NextGen). Your plugin (together with a couple of others) means that my new workflow is much wmppther than would have otherwise been the case.
All the best,
DrewApologies, this is a duplicate of https://ww.wp.xz.cn/support/topic/troubles-with-plugin/
So I’m marking as resolved.- This reply was modified 4 years ago by muttznutz.
Hi
I renewed my access token (as a “personal” account), and it’s working again nowThanks
I’ve messaged there.Okay, thanks for clarifying.
How do I switch this off ? I can’t see an option in the plugin settings.Okay.
So who is trying to log in, and to where ?
I’ve checked my Apache logs, and there’s no record of a login attempt.
I’ve just executed a (deliberately) failed login. It didn’t generate an error, but it did record a POST /gallery/wp-login.php HTTP/1.1 record in the logs.Why would this plugin be monitoring my login activity ?
Forum: Plugins
In reply to: [Lightbox with PhotoSwipe] Same image is show twice in lightboxNot sure how that got there 🤦♂️ – thanks, Arno 🙂
(Update – I’m afraid I’ve had to go with another plugin – time constraints – so the validator link above won’t work, I’m afraid).
Forum: Plugins
In reply to: [Lightbox with PhotoSwipe] Same image is show twice in lightboxJust an update (and for info) – I’ve switched to the CoBlocks plugin, which seems much better behaved.
(As an aside – those validation errors really p*ssed me off – I’d just spent ages cleaning up my theme 🙁 )
Forum: Plugins
In reply to: [Lightbox with PhotoSwipe] Same image is show twice in lightboxWill do, Arno