Marc
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb Block] Breadcrumb path for Post Archive PageHello,
i’ve tweaked a little bit :
- since the “Single post context.” part adds twice the blog root in a single post, i’ve deactivated this part.
- seems the category context covers already the case with if the IF statements
- in my context, the blog root page is a Page, so i’ve hard set the blog_id
just for anyone looking for this, now the breadcrumbs are
home / blog
/// blog homehome / blog / cat
/// blog cat archive pagehome / blog / cat / mypost
/// blog single post (considering a post is a related to a solely single category, i did not test in case of multiple categories associated to a single post)
thank Phi !
Forum: Plugins
In reply to: [Breadcrumb Block] Breadcrumb path for Post Archive Pagehello,
My cat = just a post category page
an archive page for posts = the page that displays the post category (is_archive). Often we it dispays a query loop of posts for the given category in it + the category description.
In FSE, the breadcrumb has to be set in the Post Archive Template.
- This reply was modified 1 week, 2 days ago by Marc.
hi Nick,
yes, i’m talking about Polylang.
In the Block Visibility dropdowns, we can only see the site default language pages, in my case only the french Woo Categories.
yep, that’s what i do. Maybe propose an enhancement to the core team so special containers can inherit some settings :
- header template part > sticky position
- template part > visibility
In both cases, we have to encapsulate into a group to be able to manage, loosing the purple UX colors
Forum: Plugins
In reply to: [Breadcrumb Block] Breadcrumb path in case blog home is a Pagethanks for this, works like a charm
Forum: Plugins
In reply to: [Breadcrumb Block] Breadcrumb path in case blog home is a Pageok, so i can play with the array, but i’ll wait for your hook.
i did not have a look, but if you can make it possible to let us rename the value of this inserted path position, would be fine (in case the Blog Home Page has a long Title, the breacrumb value must be shorten by us).
thx
Forum: Plugins
In reply to: [Breadcrumb Block] Wrong breadcrumb list stylei close
Forum: Plugins
In reply to: [Breadcrumb Block] Wrong breadcrumb list styleslily i am ?? I
needed to prune css, i pruned cache but it does not prune css at the same time. it’s ok now.
thanks anyway
Forum: Plugins
In reply to: [Meta Field Block] Product Collection / Query Loop- yep, i use custom code to retrieve my taxonomies, because i don’t want a link on the value. So i get the
name only
by code within mymeta_field_block_get_acf_field function
$term_id = get_field(‘zone’, false, true, true);
$term_name = get_term($term_id)->name;- About an ACF text field, it is not displayed (empty value on front, despite visible in editor), i guess you fixed this also
- This reply was modified 7 months, 3 weeks ago by Marc.
Forum: Plugins
In reply to: [Meta Field Block] Product Collection / Query Loopah good.
i was there able to fix my code there also > strange, without your fix !!!
i had a mismatch about ACF return type vs my code : needed to be term ID (instead of term object)you can see the attribute values on the category pages
hope this help you too ??
anyway, thanks for your help (and for your nice plugin)
NB : i have unset by css the margin you set by default on prefix/suffix (margin-inline-end/ margin-inline-start), maybe you could add those settings in the block.
- This reply was modified 7 months, 3 weeks ago by Marc.
Forum: Plugins
In reply to: [Meta Field Block] Product Collection / Query Loop- the ACF fields are already visible in the product pages (in grey aka with Secteur prefix, and in orange prefix Niveau).
- I want to display those attrributes in the respective
category
pages. The product list is generated through theWoo Product Collection
block (a query loop but woo enhanced it, perhaps it’s a custom of their own) - i send the values from ACF to MFB through an an action with the
meta_field_block_get_acf_field function
- Location rule for the field group is set to Post Type == Product
**About the data type**
To get the woo attribute value :
– Field 1 type (zone / secteur) : taxonomy . Returned value is term object
– Field 2 type (level / niveau) : taxonomy. Returned value is term objectDo i use wrong post type ? if yes, why can i see the values in the Editor ?
thanks for your help, appreciated
Forum: Plugins
In reply to: [Meta Field Block] Product Collection / Query Loophi Phi,
i’ve added some details in the first post.
I can see the values in the template, but those are not visible on front
ok, thanks, i can confirm it works back like a charm !
@aranofacundo , yes, that fixed the issue.
same issue also here (PHP 8.0.30)
- This reply was modified 1 year, 3 months ago by Marc.
- since the “Single post context.” part adds twice the blog root in a single post, i’ve deactivated this part.