[mla_tag_cloud]
taxonomy=attachment_tag
mla_link_href="[+page_url+]?current_id={+term_id+}"
number=0 smallest=12 largest=12 separator=' / '
[/mla_tag_cloud]
[mla_gallery]
tax_query= "array ( 0 => array ( 'taxonomy' => 'attachment_tag', 'field' => 'id', 'terms' => array( {+request:current_id+} ) ) )"
mla_caption="{+image_alt+}"
columns=3 posts_per_page=20 size=full link=file
mla_link_class="nav-links"
[/mla_gallery]
[mla_gallery]
mla_output="paginate_links,prev_next"
mla_link_class="nav-links"
tax_query= "array ( 0 => array ( 'taxonomy' => 'attachment_tag', 'field' => 'id', 'terms' => array( {+request:current_id+} ) ) )"
columns=3 posts_per_page=20 size=full link=file
[/mla_gallery]
Everything works, but there is one problem.
When I go to the gallery page for the first time, I see only a tag cloud, but there is no image gallery itself. After clicking on the tag cloud links, everything works fine.
How to make the gallery visible immediately upon entering the page?
I would be grateful for an example.
Thanks a lot
]]>I want to try out the set and get_transient functions. As an example I used my tag_cloud which is generated randomly on every page request. I set the timeout to 10 seconds but it does not seem to work.
What am I doing wrong?
// Get any existing copy of our transient data
// delete_transient('special_query_results');
$special_query_results = get_transient('special_query_results');
// If it wasn't there regenerate the data and save the transient
if (!$special_query_results) {
echo "<!-- caching -->";
$special_query_results = wp_tag_cloud(array(
'smallest' => 8,
'largest' => 16,
'number' => 30,
'order' => 'RAND',
'echo' => false ));
set_transient('special_query_results', $special_query_results, 10);
}
echo $special_query_results;
]]>Any help is appreciated.
]]>I tried many searches but to no avail on this particular issue.
I am calling the tag cloud as a list view in my sidebar with the following code
<?php wp_tag_cloud(‘format=list’) ?>
on this website https://personal-ethics.org/
It comes back as not valid xhtml with the following error
Line 249, Column 31: document type does not allow element “ul” here; missing one of “object”, “applet”, “map”, “iframe”, “button”, “ins”, “del” start-tag.
<ul class=’wp-tag-cloud’>
I cannot see where I may have messed up since it works with the list view called. Is there a place that I can fix the template that makes the tag cloud and submit it to the bug base? Does any of that make sense?
Thanks in advance for your help!
Mark
]]>wp_tag_cloud("number=40&smallest=8&largest=30&exclude=230");
230 is the tag_id from the wp_tags table. That is where I get the number from, right? But it’s not working. I can change all other parameters except exclude.
I am losing my mind on this one.
Thanks for any insight.
]]>UTW_ShowWeightedTagSetAlphabetical(“sizedtagcloud”,””,0)
I once used it with the limit set to 30, but now I want to display all my tags, or at least a lot more than just thirty, but it ignores all the new limits I set, as well as the “non-limit”. This doesn’t only go for this particular function, but for all general tag display functions. Otherwise UTW works just fine.
I have searched but not found for another thread solving this problem – if there is one allready I would be very thankful to be pointed to it.
]]>