gtaranti
Forum Replies Created
-
Forum: Plugins
In reply to: [W3 Total Cache] Envira Gallery not working when JS minification is enabled.Thanks!
You’re very helpful.
Forum: Plugins
In reply to: [W3 Total Cache] Envira Gallery not working when JS minification is enabled.Hi,
HTML Minify is enabled with settings
x Enable
x Inline CSS Min.
x Inline JS Min.There isn’t any other plugin for minification.
— update
After disabling HTML Minify, Envira Gallery works again.
This was the problem.Should I continue to have it disabled?
Or there is some other workaround?Forum: Plugins
In reply to: [Unlist Posts & Pages] Unlisted Post still showing up in search resultsThanks.
I do like the Ajax Search Lite plugin, so I don’t want to change it.
I have to live with this.Forum: Reviews
In reply to: [Unlist Posts & Pages] Perfect for my needsNo problem!
Although, I don’t know why it hurts to say the truth here.
Except it is WP forum policy, that I’m not aware of.On another side note, I could remove the suspicious link myself though ??
(if it was indicated that it’s a wrong thing to write in the first place)Peace!
Forum: Plugins
In reply to: [Unlist Posts & Pages] Unlisted Post still showing up in search resultsOh sorry!
I’m using the ‘Ajax Search Lite’ plugin!
Do you know if I have to change some setting in there?
Forum: Plugins
In reply to: [Unlist Posts & Pages] Unlisted Post still showing up in search resultsHi!
I’m using the Pro theme which I think uses the default WordPress search .
Forum: Plugins
In reply to: [WP Recipe Maker] Javascript file still in dev mode? (public-legacy.js)Thanks!
I’ve sent you an email. ??
Forum: Plugins
In reply to: [WP Recipe Maker] Paragraph in Recipe summaryI ended up using the following code to limit the summary to only the first paragraph. I’m using the
text_style
attribute because I can’t define a new one :function recipe_summary_output( $output, $attributes, $recipe ) { if (isset($attributes['text_style']) && $attributes['text_style'] == 'keep_first') { $text = '<div class="wprm-spacer"></div>'; $text_pos = strpos($output, $text); if ($text_pos !== false) { return substr($output, 0, $text_pos) . '</div>'; } else { return $output; } } else { return $output; } } add_filter( 'wprm_recipe_summary_shortcode', 'recipe_summary_output', 10, 3 );
Forum: Plugins
In reply to: [WP Recipe Maker] Paragraph in Recipe summarySorry, the problem does not exist anymore and I can’t reproduce it.
Now the paragraphs do split correctly.On another subject, what filter should I use to modify the summary text output in some specific places?
For example, to limit the summary to only the first paragraph..- This reply was modified 6 years, 3 months ago by gtaranti.
Problem fixed.
I don’t exactly how but now I see the recipes are based on my custom template.
Don’t ask how! I don’t really know.
OK,
Now I see that in the new
simple
template you’re using shortcodes instead ofWPRM_Template_Helper::
class.I’ll study the new
simple
php file, and fix my custom template php file respectively.But again, the migration for a custom recipe template from 3.2.1 to 4 ought to be smoother.
- This reply was modified 6 years, 4 months ago by gtaranti.
Forum: Plugins
In reply to: [Contextual Related Posts] Filter on crp_default_optionsNever mind, I didn’t use the
add_filter('crp_default_options')
hook.
I usedexcluded_categories
option in the shortcode to obtain a similar effect.Something that I stumbled over with this method, is that because I’m using the
crp_custom_template
filter, I had to convert the exploded array of categories to int values, in order to work. Like that:$exclude_categories = array_map( 'intval', explode( ',', $args['exclude_categories']));
Forum: Plugins
In reply to: [Contextual Related Posts] Filter on crp_default_optionsSorry, I cannot make it work.
Adding thecrp_default_options
filter doesn’t seem to have any effect. Even if I change something that is already in the$crp_settings
array, (like$crp_settings['random_order'] = true; return $crp_settings;
).By “..reset the options..” you mean to click on the “Default Options” button on the bottom of the plugin settings page?
A little help here would be very much appreciated!
Forum: Plugins
In reply to: [Contextual Related Posts] Template overrideSure.
I just overrode the standard template of the plugin by adding a filter to the
crp_custom_template
in my theme’s childfunctions.php
like this :add_filter('crp_custom_template', 'diane_crp_template', 10, 3);
Then also in my
functions.php
I copied the contents of the functionsget_crp()
(I renamed itdiane_crp_template()
) andcrp_list_link()
of the filemain-query.php
and customised them as necessary.
I also created my own CSS.
I wanted to create related posts for recipes posts.The results : Link-1 and Link-2
- This reply was modified 6 years, 6 months ago by gtaranti.
Forum: Plugins
In reply to: [Contextual Related Posts] Template overrideNever mind, I used your
crp_custom_template
filter to override the default template.Nice functionality. Thanks!