Code Amp
Forum Replies Created
-
Forum: Reviews
In reply to: [Search & Filter] Don’t buy itHey @vgsvenice
Sorry to hear you’ve had such a negative experience…
The pro version adds some extra features (which bring technical challenges) because it support things like custom fields, ajax searching, DB optimized queries + cache and more.
However I realise you’ve had pain points with the plugin, and we’re already (2+ years in the making) working on addressing the UI to make it easier and more intuitive to use.
Not only that, we’re also adding the features you mentioned, so you’ll be able to change color schemes of your fields using a visual editor we’re building (+ more design options such as spacing, border, padding and fonts will follow later in the year).
Thanks for your feedback, I do hope you’ll give us another go in the future.
- This reply was modified 4 years, 4 months ago by Code Amp.
Forum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] Shadows around boxes?Hey @dsl225
Thanks, I did miss this.
Its planned to add this as a feature but we have quite a few other things to work on first.
Once certain parts of our UI are a bit more stable (we’re reworking some of this) we’ll look to how we can incorperate this kindof functionality.
Best
Thanks for the review @tylertork – hopefully in a few months (after a big update we’re working towards) we’ll get to add this in.
Hi @sinnamon
I did test our custom field, and it seems to work well.
I tried all types – Text, Number, Date, Link, HTML – and it seems to work ok for me.
I don’t think this would make much difference but you could try our 1.4.6 beta (it only has a couple of unrelated bug fixes) but it’s worth a shot:
https://customlayouts.com/documentation/beta/If that doesn’t work, then I’ll need to access the issue somehow – can you try that using one the links I provided?
Also: did you try this on a dev / test install to confirm the issue is reproducible?
Thanks
Ahhh John! yes I should have known better..! Thanks for those reviews it means a lot 🙂
Regarding the above filter, it still works with Gutenberg and blocks, its just they don’t get a Layout ID passed down as the second parameter.
So you couldn’t apply the conditions based on ID, like this line:
if ( absint( $layout_id ) === 123 ) {Instead you could test against the current post / page or another wordpress conditional tag – eg:
if ( is_page( 'contact' ) ) {More info on conditional tags: https://codex.ww.wp.xz.cn/Conditional_Tags
- This reply was modified 4 years, 5 months ago by Code Amp.
😀 Glad that all worked out for you in the end!
Forum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] Nice, but a couple requestsHey @tylertork
Thanks for the feedback!
Regarding your requests:
1. Use the background of the page – this is already possible 🙂 See this gif I just made so you can see which setting to change:
https://drive.google.com/file/d/1ZhY-u6hB-pb0N6FDXJAij2C13EDkd9Gh/view?usp=sharing2. You’re right on this – we should add an option to hide the image completely if no image is found – I’ll put that on the todo list!
We already have on the roadmap to add the ability to set a custom image.
Regarding the number requests, there should hopefully only be one extra – for our placeholder SVG – not ideal, but hopefully not too taxing.
All the best
– RossForum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] Html code on titleHi Mark
I’m afraid this won’t be fixable.
Essentially, all the characters in a post title are supposed to be displayed on a website.
2 main reasons for this:
– What if a user wants to enter special characters in their title – we must display them
– Security – all data must be escaped before displaying, and this is why you see the html output insteadAnother thing to consider is, what would be the page title (in your browsers title) when adding in these codes? I guess they should be invisible… but they are also not supported in the post title.
All in all, this is not supported by WordPress, and also because we match that, our plugin.
What you could do is (if you can do some coding) is to use a PHP filter to change the the text inside the element.
The hook for that can be found here:
https://customlayouts.com/documentation/action-filter-reference/You would want to use the one:
add_filter( 'custom-layouts/element/render_output', 'cl_element_render_output', 10, 2 );Then you can completely change the html / text inside any element programmatically.
I realise that might not be what you wanted exactly, but these are the current limitations regarding this request.
All the best
– RossHey John
As I now know you are not using the block editor, then you can modify it like this:
add_filter( 'custom-layouts/layout/query_args', 'layout_query_args_15156524', 10, 2 ); function layout_query_args_15156524( $query_args, $layout_id ) { if ( absint( $layout_id ) === 123 ) { $query_args['post__in'] = array( 1, 2, 3, 4, 5 ); } return $query_args; }In this example, you would change
123for the layout ID you do want to be affected (when you edit a layout, you can find the ID in the address bar).Let me know how you get on with that?
Thanks
—-
BTW, if you feel like leaving a review it would be appreciated – https://ww.wp.xz.cn/support/plugin/custom-layouts/reviews/ 😀
Hey @dsl225
What you would need to do is add the following code:
add_filter( 'custom-layouts/layout/query_args', 'layout_query_args_15156524', 10 ); function layout_query_args_15156524( $query_args ) { $query_args['post__in'] = array( 1, 2, 3, 4, 5 ); return $query_args; }This would then restrict to your layout to 5 results with the IDs – 1, 2, 3, 4, 5
If you are using multiple layouts, this would affect all of them.
There is more code we can add in to make sure we only affect one layout, if required.
Thanks
Ahhh ok, then I think what you’ll need to do is, enable the featured image, position it to top (and remove the background image).
Then you should get what I’m experiencing.
You can even make the margin more negative so that the featured image “feels” like a background image.
Does that make sense?
Hey @sinnamon
Sorry to hear you’re having this issue.
I’m going to do a full test of this functionality in our plugin tomorrow – I will report back my findings and if I am able to recreate.
Regarding an email – I’m afraid I think its against WordPress forum rules to ask / provide info here – I’ve been told off for this before!
What might work is to recreate the issue on a dev site? If you can’t easily set one up, there are a couple of services I’ve used before that seem to do a great job of generating (free) throw away WordPress sites:
https://tastewp.com/
https://instawp.io/** I think some of these sites get destroyed automatically after 8 hours on free accounts, so if you go that route, lets arrange a time I can be available to take a look?
Thanks
Hey again @dsl225
Yeah I think you can do this.
To explain a little bit about the structure of our templates at the moment:
1. Everything is contained in an ourter container, the Template.
2. If you have the featured image enabled, you then have two containers – featured media, and section
3. Inside the section, are where all your other elements appear when you add them / drag them on to the templateSo, what you want to do is:
1. Carefully select section
2. Edit the margins to add spacing to the side
3. Add negative margin to the topHeres a little GIF I made of the process: https://drive.google.com/file/d/1fD2NnDeX_hSz_1Np76vakiPZO-1MLkCb/view?usp=sharing
I actually thought you would have to do this with CSS + custom classes, but it looks like the negative margin in our UI works just fine!
Let me know if that works out ok for you.
Best
Hey @dsl225
I think what you want might be possible… there are two routes I see:
1. You can place individual post templates, and choose them by ID.
Via gutenberg: You can place multiple post template blocks (there is a search box to find which post to choose)
Via our admin screen with the template editor: you will see on the right a metabox, for a shortcode for that post template. You can replace the post ID with any ID you choose
2. You could modify the query using a hook (you’d need to be comfortable doing a bit of php coding to get what you want) – this is the hook you would want:
add_filter( 'custom-layouts/layout/query_args', 'layout_query_args', 10 );
Found: https://customlayouts.com/documentation/action-filter-reference/You can add a
$query_args['post__in'] = array( 1, 2, 3, 4, 5 );to specify IDs of posts to display.I hope that helps!
Best
Hey @sinnamon
That sounds odd indeed.
From what I can tell, nothing regarding our custom field element was changed in our recent updates – so it does sound odd its not working – but maybe a change has eluded me.
To get to the bottom of this can you confirm a couple of things?
1. Edit the yoga posts in question and double check the custom field is there with a value
2. Double check the custom field key – if you are using ACF to create custom fields, then this uses 3 keys for any custom field:
_my_custom_field my_custom_field field_123456What you would need is the second version, without the underscore:
my_custom_field– but its possible you’re not using ACF3. Can you share a link to the page in question?
Thanks