Code Amp
Forum Replies Created
-
Hey @desbest
I’m just getting back on top of things after the Christmas break
Regarding this feature request, I’m not entirely sure how we would go about programming something like this in our plugin.
We create our posts lists using WordPress standards (WP_Query), and there isn’t a great mechanism for creating a query/condition like this.
If you are comfortable doing a small amount of custom coding, I would like to suggest and alternative approach, the outline would be something like this:
- When saving a post, detect if there is an excerpt or not, and add a custom field value to signify this – this can be done using the
save_posthook and theupdate_post_metafunction. - Then you can modify your layout query, to show only posts with this custom field value using our
query_argsfilter here – https://customlayouts.com/documentation/action-filter-reference/
This would achieve the effect that you desire, but of course requires some PHP coding knowledge.
If you are happy to do the above coding, I can explain in a little more detail the steps to achieve this but I won’t be able to write the code for you.
Thanks
Forum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] Masonry didn’t workHey @mathistrndevinf
Thanks for doing that, I can see clearly that masonry is not working / being triggered.
While I don’t understand the issue fully I think I can highlight some potential issues:
- Normally, when using Masonry with WordPress, the default version of the Masonry script is loaded (that comes with WordPress) , this is the version our plugin is designed to use
- If we look at our website, inspect the source code, we can see the following line is used to load Masonry:
<script src='https://customlayouts.com/wp-includes/js/masonry.min.js?ver=4.2.2' id='masonry-js'></script>We can see Masonry is loaded from our wp-includes directory, part of WordPress.
- I can see on your site though, that does not exist, instead, you have this:
<script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.js"></script>Notice here, its not being loaded from your WordPress install, but instead, from unpkg.com
It looks like something in your setup is loading Masonry in a non-standard way, and this would be my best guess as to why Masonry is not loading correctly on your site.
What I would do to see where the issue is coming from:
- Change your theme (temporarily) to a default WordPress theme, and see if the issue persists
- If it does, then its likely a modification coming from another plugin, in which case you will need to disable your plugins one by one and keep checking (and refreshing the page) to see where the issue is coming from.
Once you know what is causing this change, then we might be able to figure out a solution (but not guaranteed, I’m afraid).
Let me know how you get on, and if that all makes sense.
Thanks
Forum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] Masonry didn’t workThanks for sending the link, however I cannot see our Custom Layouts on that page, can you direct me to where I can find it?
Thanks
Forum: Reviews
In reply to: [Search & Filter] Not goodThanks Ricard I will get back to you later on today
Forum: Reviews
In reply to: [Search & Filter] Not goodHi @ric11212 I’m not sure I understand exactly the bug – please see my video: https://drive.google.com/file/d/138l0Wr1wjvvvDQ2tfDgigB0nKFZGnCn_/view?usp=drivesdk
Did you contact our pro support team? We might need to get access to the site to fix the issue.You can use the contact form here: https://searchandfilter.com/contact/
Thanks
Forum: Reviews
In reply to: [Search & Filter] Not goodHi @ric11212
Sorry to hear you had a negative experience with our pro plugin, I’m looking into the date picker issue right now – could you share your username / start of your email address (not the full thing) so I can try to locate your ticket?
Alternatively you can reach out to our pro support again, and ask for me – “Ross”.
Re the v3 mailing list, we’re working on a new update due next week (and we’ll send copies out to the mailing list).
Thanks
- This reply was modified 3 years, 5 months ago by Code Amp.
Forum: Reviews
In reply to: [Search & Filter] Not goodHey @ric11212
This version shouldn’t be full of bugs, we’ve recently done a full round of testing and updated the code only 2 weeks ago.
RE v3, this is built and in testing now – if you want to get your hands on a copy you can do so via the info in this sticky here:
https://ww.wp.xz.cn/support/topic/search-filter-version-3-is-in-testing-support-is-on-hold/
Every time we update v3 with fixes and a new release, then we send out copies to the new users on our mailing list.
Best
Hey @sdraaijer , it sonds like there is a Javascript error on our admin page.
Can you open the JavaScipt console of your browser and screenshot (or copy + paste the text) of any errors you see when accessing our layout editor?
Most browsers have a JavaScript console, this article explains how to open it in the most popular browsers:
https://www.coursera.support/s/article/learner-000001653-How-to-open-the-Javascript-console?language=en_USIf you have any issues with this, let me know, and I’ll try to help.
Thanks
- This reply was modified 3 years, 5 months ago by Code Amp.
Forum: Plugins
In reply to: [Search & Filter] Pro Pre purchase questionHi @raesgo – the pro version doesn’t currently have an option for it, but it can be achieved with the custom CSS found here in the documentation:
https://searchandfilter.com/documentation/getting-started/display-search-form/#making-your-search-form-horizontalVersion 3 is only a few months away, and with that update you’ll be able to place your filters wherever you need and in any direction.
Thanks
Forum: Plugins
In reply to: [Search & Filter] Still active ? Because searchandfilter.com is brokenHi @ultramega + @faboulousfab31
Apologies, we don’t check these forums very often.
We had some issues with our site for a couple of days after performing some major updates but that should all be resolved now.
Let me know if you continue to have issues and I’ll make sure you get setup/renewed.
Thanks
Hey @gamicord
To answer your questions:
1. Currently we do not have a way to use the archive query itself – we create a custom query instead – we hope to add this as a feature in our next major version
For now you can use the Query Builder options in our layout panel as described at the bottom of this page:
https://customlayouts.com/documentation/layouts/2. This will be possible, but it requires custom CSS – if you can write CSS then you’ll be able to achieve this – there is no option in our plugin to do this
2b. Currently we cannot put the categories on top of hte featured image.
However, they are displayed inline, at the position you place them in your template.
3. Yes, we have a shortcode to add a layout to Elementor.
I hope that helps.
Best
Hey @chillmen
This plugin won’t be able to “figure out” the related posts itself.. however if you have a way to do that , then you could dynamically pass in the desired Post IDs into the layout.
It would require some PHP knowledge though – the idea is you would use a hook to modify the query that is run –
custom-layouts/layout/query_argsMore info here: https://customlayouts.com/documentation/action-filter-reference/
What you would need to then do is update the
post__inkey to the IDs you want to show, eg:$query_args['post__in'] = array( 1, 2, 3 );This would show posts with the IDs
1,2and3I hope that helps!
Thanks
Forum: Reviews
In reply to: [Custom Layouts - Post + Product grids made easy] ExcellentThanks for the info @chillmen !
Forum: Reviews
In reply to: [Custom Layouts - Post + Product grids made easy] ExcellentThank @chillmen !
A question if you don’t mind – are you using the shortcode because our blocks don’t work in FSE?
I’m planning to look at FSE integration soon but it’s been a while since I looked at it!
Thanks
Hey @alfy40
We don’t display shortcodes in excerpts intentionally.
We tried to follow the way WP does this, and usually in a post list / archive, excerpts don’t process shortcodes.
I will see what we can do to support this – we could add a filter so you can enable this via your themes functions.php instead of modifying our plugin directly.
Need to think about this some more, and will let you know towards the end of the week.
Thanks
- This reply was modified 3 years, 6 months ago by Code Amp.
- When saving a post, detect if there is an excerpt or not, and add a custom field value to signify this – this can be done using the