tosca30
Forum Replies Created
-
Forum: Plugins
In reply to: [Media Library Assistant] Ordering on a custom fieldI’m afraid I can’t reproduce this issue.
Consider it being solved.Sorry for the disturbance.
Forum: Plugins
In reply to: [Media Library Assistant] Field-level markup parameters with linksProblem solved with this last modification.
Thanks a lot for your helpfulness.Forum: Plugins
In reply to: [Media Library Assistant] Ordering on a custom fieldI’m away from home for a few days, and testing is not very easy…
At the moment, everything seems to work as it should though I’ve not changed anything yet!
I will test more thoroughly next week, when I’ll have access to my development system, and give you a definitive answer.Thanks for having confirmed the syntax.
Forum: Plugins
In reply to: [Media Library Assistant] Field-level markup parameters with linksOups! I might have forgotten to close the
link
tag, and can’t see any way to correct my previous message.
Here is the link to that page.Forum: Plugins
In reply to: [Media Library Assistant] Field-level markup parameters with linksI’m afraid I don’t see any difference after having modified the code.
If you navigate from this page https://www.marie-noelle-augendre.com/cevennes/galerie/ you will see that all the sujet that have either Sur l’eau or Au bord de l’eau term have an incomplete link (taxonomy is there, but no term afterwards).Alternatively, if you choose the very same sujet from the searchform in the sidebar, the links work fine and you are redirected to the right page that contain the chosen pictures.
[Moderator Note: Please ensure that you are embedding links correctly in your posts.]
Forum: Plugins
In reply to: [Media Library Assistant] Field-level markup parameters with linksI’m coming for a little problem: when terms contain a quote (Sur l’eau, for example) the link doesn’t work.
Something might be missing, so PHP wouldn’t get lost in the process.Forum: Plugins
In reply to: [Media Library Assistant] Using tax_query parameter in do_shortcodeYes, I use the
slb_activate
function; without it, the lightbox didn’t work and the media page (= single post page) was displayed instead.Forum: Plugins
In reply to: [Media Library Assistant] Using tax_query parameter in do_shortcodeEventually find my mistake: I use MLA shortcode several times in the page, for the gallery itself, then for the pagination links; and I had added the Simple Lightbox code to the wrong instance!
Once it is put on the ‘images’ gallery, it works fine.
Forum: Plugins
In reply to: [Simple Lightbox] SLB won't work on my custom archive/search pageOuch! Seems very foolish on my part…
When copying/pasting my code, I just saw my mistake: I use the gallery shortcode several times on the same page, for the images first, then for the pagination links, and the
slb_activate
was used on the wrong instance.I just put it in the right place, and it works like a charm.
I apologize for the disturbance.Thanks you very much for the help and this good plugin.
Forum: Plugins
In reply to: [Simple Lightbox] SLB not working in my custom post page@archetyped: done here
Forum: Plugins
In reply to: [Media Library Assistant] Using tax_query parameter in do_shortcodeThanks for having investigating this.
It doesn’t work better after I’ve modified the code: I checked the condition is actually true, but there is no change in the output. This SLB version seems to be still in beta, and other users have reported such issues; I have added my input to Simple Lightbox support and will let you know when/how the problem is fixed.
Forum: Plugins
In reply to: [Simple Lightbox] SLB not working in my custom post pageSame problem here.
I used the functionslb_activate()
to display the content to no avail. See here: custom page, though it works fine on a regular pageForum: Plugins
In reply to: [Media Library Assistant] Using tax_query parameter in do_shortcodeHere is what I’ve written in order to build the
tax_query
string:$args = array( 'public' => true, '_builtin' => false ); $my_taxonomies = get_taxonomies($args); $my_tax_query = 'array('; $i = 0; foreach ($my_taxonomies as $my_taxonomy) { if (!strlen($wp_query->query_vars[$my_taxonomy])) { continue; } $i++; $my_terms = $wp_query->query_vars[$my_taxonomy]; $my_tax_query .= "array('taxonomy' => '" . $my_taxonomy . "', 'field' => 'slug', 'terms' => '" . $my_terms . "'),"; } if ($i > 1) { $my_tax_query .= "'relation' => 'AND'"; } $my_tax_query .= ')'; echo do_shortcode(sprintf('[mla_gallery tax_query="%s" my_filter="term gallery" paged=current]', $my_tax_query));
There is still one thing that I couldn’t make work: I use the Simple Lightbox extension to display the pictures of a gallery. It works fine when the gallery is built from a shortcode on a specific page, but not on any archive page where the galley is displayed using code with
do_shortcode
, for example; the attachment article-page is displayed instead of the lightbox, though I have enabled Simple Lightbox for every type of page.Any idea how to solve this?
Forum: Plugins
In reply to: [Media Library Assistant] Using tax_query parameter in do_shortcodeEventually, I reached a solution by building a
$my_tax_query
string, that I use in thedo_shortcode
as follows:
echo do_shortcode(sprintf('[mla_gallery tax_query="%s" paged=current]', $my_tax_query));
There are still some refinements to be done, but I think I’m getting to right end of the stick.
Thanks a lot for helping.
Forum: Plugins
In reply to: [Media Library Assistant] Using tax_query parameter in do_shortcodeThanks for your answer, but I don’t know how to fix my problem: the taxonomy/terms parameters will be selected from a searchform by the user, and I have no way to know in advance which will be chosen; that’s why I can’t use constants and need variable(s) in the
tax_query
instead.Here is the searchform I intend to use.
How can I display an archive gallery, based on this multi-criteria query?