charlie67p
Forum Replies Created
-
Forum: Plugins
In reply to: [Meta Field Block] version 1.1.0 not working anymore on CPT archive pageAh yes! you’re right
My wp:query “inherit” was set to false. After setting it to true it works fine ??Thank you again @mr2p
Forum: Plugins
In reply to: [Meta Field Block] version 1.1.0 not working anymore on CPT archive pageHi @mr2p, Thanks for checking,
OK but then my orderby meta_value is not working anymore…Forum: Plugins
In reply to: [Meta Field Block] version 1.1.0 not working anymore on CPT archive pageHad the same problem, so I sent it to you with Wetransfer. You should receive the link on your Gmail.
ThanksForum: Plugins
In reply to: [Meta Field Block] version 1.1.0 not working anymore on CPT archive pageSent it to you in a Zip, but I got a Undelivered Mail Returned to Sender
Forum: Plugins
In reply to: [Meta Field Block] version 1.1.0 not working anymore on CPT archive pageDone ??
Forum: Plugins
In reply to: [Meta Field Block] version 1.1.0 not working anymore on CPT archive pageCPT created with CPT UI.
Where can I send my child theme to you ?
Edit:
When I go to Appearance > editor > template archive-cpt , the block is working fine (displaying for each single the values of my ACF field).
But when viewing my archive-cpt on the website, the values are empty.- This reply was modified 1 year, 8 months ago by charlie67p.
Forum: Plugins
In reply to: [Meta Field Block] version 1.1.0 not working anymore on CPT archive pageYou meant like this ? :
<!– wp:mfb/meta-field-block {“fieldType”:”acf”,”fieldName”:”field_63ff67cde9102″} /–>
It still not working…Forum: Plugins
In reply to: [Meta Field Block] version 1.1.0 not working anymore on CPT archive pageTwenty Twenty-Three child theme
My archive-cpt.html is in my /templates/ folder
WordPress 6.1.1
Free ACF Version 6.0.7
Simple ACF text field registered via UI
Site health is “Good”
Edit : I desactivated and deleted the plugin, then reinstalled it, but still not working on archive page.- This reply was modified 1 year, 8 months ago by charlie67p.
Forum: Plugins
In reply to: [Meta Field Block] version 1.1.0 not working anymore on CPT archive pageThanks @mr2p , but it’s still not working on my archive-cpt.html with Version 1.1.1.
( but it’s working on my single-cpt …)
>> I’m going back again to version 1.0.10 ??- This reply was modified 1 year, 8 months ago by charlie67p.
Forum: Developing with WordPress
In reply to: Query Loop Block, taxQuery and counting found_postsThanks @bcworkz
I’m not sure to know how to write this Hook :
“Hook an action within WP_Query a callback that watches for the block’s query and saves only that count.
“
I get the count in my functions.php :if ( is_front_page() ) {
$count = ‘Number of posts : ‘.$GLOBALS[‘wp_query’]->found_posts;
}
And my Query Loop Block is in my template home.htmlForum: Plugins
In reply to: [Ajax Search Lite - Live Search & Filter] Change the “Search here” text@wpdreams Thanks, I didn’t see !!
thanks @bcworkz !
You were right. Using ‘year’ as a taxonomy was a bad idea.
I finally used ‘year’ as a meta value and edited my functions.php with the pre_get_posts hook. Works perfectly.Thanks, I will check the pre_get_posts Hook.
To be more clear about what I want to achieve :I try to build a website for an architecture agency.
– Classic posts are dedicated to the News of the agency, on the homepage, here it’s OK, the date of publication of the Post does the job.
– I made also a Custom post type “projects” that is dedicated to the houses made by the agency. Each house has a year of reference (sometimes it has 2 years of reference : Year of start of building + Year of end of building). So when we click on “Projects”, the houses should appear in chronological order.Forum: Developing with WordPress
In reply to: Create a pre-written Paragraph / List block ?Thanks,
I found a way to do a pre-written List :
– making a new Block Pattern, based on the core/list Block, with pre-written list items inside : <!– wp:list-item –>Here comes my pre-writtent text<!– /wp:list-item –>
– then adding it automatically to the Custom Post editor with a plugin.- This reply was modified 1 year, 9 months ago by charlie67p.
- This reply was modified 1 year, 9 months ago by charlie67p.
Forum: Developing with WordPress
In reply to: Show a paragraph block only when viewing Single-post@faisalahammad I’m using the Ignite theme.
This is my website : detaileddrawings.org