lagunas
Forum Replies Created
-
Ok, thanks!
OK, thanks !!
Thank you!
The script I’m enqueueing adds the data-heading attribute to table cells:
jQuery('.tablepress').each(function() { var thetable=jQuery(this); jQuery(this).find('tbody td').each(function() { jQuery(this).attr('data-heading',thetable.find('thead th:nth-child('+(jQuery(this).index()+1)+')').text()); }); });
And your solution worked perfectly for what I needed.
Thanks again for your time!!
That would be great!
Thanks!Forum: Fixing WordPress
In reply to: Widgets lost after changing serverThanks for your answer!
There was nothing under “Inactive Widgets”.I needed my site back online as soon as possible, and I couldn’t find a solution to this, so I reconfigured all my widgets manually.
Forum: Plugins
In reply to: [NextCellent Gallery - NextGEN Legacy] Problems after changing serverFixed!
I think it had something to do with another plugin that needed to be activated or something.
I’ve been fixing other unrelated migration errors, and now I don’t see the error message anymore, and the gallery loads ok.Thanks for your answer!
Does that mean that it is not possible with the free version?Forgot to mention that the code provided here doesn’t work either.
I’ve tried both
echo adrotate_group('1', '2');
in a template file, and[adrotate group="1" fallback="2"]
in a page.Forum: Plugins
In reply to: [Ads by datafeedr.com] Dynamic rotating of ads?Do you plan to include this feature in future releases?
Your plugin looks very promising, simple, light and easy to use.
But I’m afraid I’m not a coder and I need the functionality.Forum: Plugins
In reply to: [Relevanssi - A Better Search] Sorting search results by post titleWorks perfectly.
Thank you so much!hi there!
I coudn’t find how to adapt the code on the link you provided to what I needed.
But I found the answer here:
https://pods.io/forums/topic/sort-relationship-field-according-to-menu_order/and here’s my code, in case somebody finds it useful:
$art = pods('art', get_the_id()); $docs_rel = $art->field('doc_rel'); if ( ! empty( $docs_rel ) ) { $docs_rel_menu_order = $art->field('doc_rel.menu_order'); array_multisort($docs_rel_menu_order, $docs_rel); foreach ( $docs_rel as $doc_rel ) { ... } }
Thanks!
Thanks for your answer!
Could you provide an example of the workaround you propose?
I’m not very good at programming, but with an example I may be able to adapt it to what I need.
Thank you!Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Displaying image captionsGot it!
Here’s the code I used for image caption:
$img_caption = $art->field('a_img.post_excerpt', true);
Thank you so much for putting me on the right track!!
Kept trying, and changed my code to:
$art = pods('art', get_the_id()); $params = array('name' => 'a_doc_rel'); $docs_rel = $art->field($params); if ( ! empty( $docs_rel ) ) { foreach ( $docs_rel as $doc_rel ) { ... } }
This works just like the code I was using before. But if I add
'orderby' => 'menu_order ASC'
like this:$art = pods('art', get_the_id()); $params = array('name' => 'a_doc_rel', 'orderby' => 'menu_order ASC'); $docs_rel = $art->field($params); if ( ! empty( $docs_rel ) ) { foreach ( $docs_rel as $doc_rel ) { ... } }
then the related fields are not displayed at all.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Displaying image captionsI’m not sure what you mean, I’m not very good at programming. Just trial and error.
echo $img;
displays the image URL correctly.
echo $img_id
displays the image ID correctly.Does that answer your question?