Nightjar
Forum Replies Created
-
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Problem with Enfold theme “Instant Search”Hello Mikko,
here is what the developers say there is inside the $tempquery function:An here is a screenshot showing the striking difference between the results (21 to nil) on a full Relevanssi-driven search and an Ajax search:
https://www.azfleet.info/docs/azf_relevanssi.jpg
I hope this helps!
- This reply was modified 6 years, 11 months ago by Nightjar.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Problem with Enfold theme “Instant Search”I have asked the theme’s developers info about that $tempquery variable, In any case, they wrote:
“Yes, unfortunately, the theme’s ajax search uses the get_posts function to query posts.”
Does that mean that there is no way out of this loop for ajax search?
Thanks!
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Clash with LiteTooltip WP pluginI made my developer modify the Lite Tooltip plugin, so to make it work.
Thanks anyway!Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Clash with LiteTooltip WP pluginOK, I have activated both plugins so to trigger the problem.
You can see the problematic page here.The missing sortable arrows should be active on Cognome, Nome, Foro and Sezione locale columns. The table search box is also missing, along with pagination of the table.
Forum: Plugins
In reply to: [Multifile Upload Field for Contact Form 7] Required Field not workingSame error here – if the file upload is set as required:
[multifile* upload]
there is no CF7 warning if the user does not select the file to upload.
Any chance to fix this bug?
Forum: Plugins
In reply to: [Conditional Fields for Contact Form 7] Fields disappear on input errorI have updated your plugin to version 1.3.4 and the problem is gone. What did you do?
Forum: Plugins
In reply to: [Conditional Fields for Contact Form 7] Fields disappear on input errorYep. It’s still under construction on a temporary webspace:
https://sito.cartabianca.com/modulo-adesione-unam/
You can just send out an empty form and see how the conditional fields:
“Firma touch/mouse”
“Allega documento firma”(placed near the end, before the privacy statement acceptance and controlled by “Seleziona modalità di immissione firma” field) just disappear after the page reports the error.
Any help would be greatly appreciated!
- This reply was modified 7 years, 5 months ago by Nightjar.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Snippets and highlighting isn't workingI’m having the same problem with Enfold theme. Its search.php file is here:
And there are also a few functions added:
add_filter('avf_ajax_search_function', 'avia_init_relevanssi', 10, 4); function avia_init_relevanssi($function_name, $search_query, $search_parameters, $defaults) { $function_name = 'avia_relevanssi_search'; return $function_name; } function avia_relevanssi_search($search_query, $search_parameters, $defaults) { global $query; $tempquery = $query; if(empty($tempquery)) $tempquery = new WP_Query(); $tempquery->query_vars = $search_parameters; relevanssi_do_query($tempquery); $posts = $tempquery->posts; return $posts; }
Any help would be greatly appreciated!
The developer of the original PHP code that allows to use external shortcodes within APL just wrote on this same support forum:
Are you making a proper “custom type” selection on the Advanced Post List settings header? If so, as I can see, that short code “ecpt_field” is based on a different $post object var than the generic $post used in the loop ..
Remember that Advanced Post List uses a generic $post reference as shown in the example.
Perhaps, you should pass the ecpt_field shortcode the $post->ID that is currently received by the sh_code function.
Maybe this can be of help trying to sort out the problem…
OK, ECCT developer sent me a copy of his plugin for you, so to allow you to make any test you need. But probably it will be better to go on exchanging email messages instead. I can’t find yours, but mine is diego [at] cartabianca [dot com].
And yes, data-consegna is an ECCT custom field (it’s in Italian and does mean “delivery date”). It’s put into #s because of the requirements of that custom PHP function that allows external shortcodes to run with your plugin.
The data-consegna field is a date field, with the Unix Timestamp converted as a standard date format.
Hope this helps – I’m looking forward to receiviing your email message, so I can send you a copy of ECCT plugin.
OK, I forwared your request to ECCT developer, so (who knows?) he may provide you a copy of his plugin for testing. Or at least give you some additiona insights.
Anyway, I’d appreciate really much if you can help me to get out of this mess…
As I wrote, your plugin does work beautifully along with ECCT custom fields, provided it only grabs the provided data for each page through your
post_meta name
shortcode.But when I have to handle ECCT shortcodes through APL I must use this kind of code:
[php_function name="sh_code" param="ecpt_field id=#data-consegna#"]
Following the directions detailed here.
So, I’ve just added this PHP to the function.php of my theme:
function sh_code($post, $shcd){ $shcd=str_replace('#','"',$shcd); //needed to parse " marks if(function_exists('do_shortcode')){ $output=do_shortcode('['.$shcd.']'); }else{ $output="[error: do_shortcode function doesn't exist!]"; } return $output; }
But using it gives a result like this:
Entry 1: Custom field 1 OK – Custom field 2 OK – PHP generated from entry 3
Entry 2: Custom field 1 OK – Custom field 2 OK – PHP generated from entry 3
Entry 3: Custom field 1 OK – Custom field 2 OK – PHP generated from entry 3That is, using the PHP function and the ECCT shortcode just make APL display the data of latest entry repeated for all the lines of the table.
OK, I sorted out the date display problem, successfully converting the Unix timestamps.
However, there is still a BIG issue standing. When I try to make a list of custom fields using this code for the table rows:
<tr><td><img src="https://mywebsiteurl/wp-content/themes/blocked/includes/scripts/timthumb.php?src=[post_thumb]&w=90&h=40&zc=1&q=80&a=l" style="margin: 0px 2px;" /></td><td><a href="[post_permalink]">[post_title]</a></td><td>[post_meta name="ecpt_modello"]</td><td>[post_meta name="ecpt_nome"]</td><td>[post_meta name="ecpt_seriale-costruttore"]</td><td>[php_function name="sh_code" param="ecpt_field id=#data-consegna#"]</td><td>[php_function name="sh_code" param="ecpt_field id=#data-dismissione#"]</td><td>Da calcolare</td></tr>
Your plugin just displays a series of fields (the ones generated by the php_function name=”sh_code” function) that are all the same. That is, every field of each row is the same as the latest entry of that group.
I have tried to solve the problem with the ECCT plugin developer, but after a series of tries he gave up writing: According to their documentation, it should work. Unfortunately I really don’t know what else to tell you, sorry, not unless the Advanced List developer can come back with a specific reason why it’s not working.
I have even tried to hire a developer in India, but he too failed to solve the problem.
So, basically now I’m in your hands – I know that creating a table using shortcodes from another plugin should be possible (as explained here) but I don’t know what’s wrong.
Can you please help me?
I have tried to use your PHP function along with Easy Custom Content Types for WordPress, but when I place the following code on a table:
<td>[php_function name="sh_code" param="ecpt_field id=#data-consegna#"]</td>
The data displayed on every column is the same – that is the data related to the last entry repeated on all the fields of the same column.
Any idea on what’s wrong?
OK – found it.
To make the category archive pages display the right entries related to the same category only, I must select ONLY the “Include Terms” option on the APL category panel.… And at the same time, when I click the breadcrumb labelled “Category B” the resulting Category Archive page should display ONLY the following entry:
Post 2
… And so on. Please note that I can configure only a single/default layout for all categories archives with my WP template.