jjdualan
Forum Replies Created
-
Forum: Plugins
In reply to: [GravityWP - Count] Filter Based on TitleTrying to get this working using those two plugins. Do you know if it’s possible to activate the {current_post:post_title} mergetag without having to choose the page from the Gravity Form confirmation settings page?
There’s a checkbox to Enable Merge Tags in Page Content but I think it’s only enabling the mergetag on whatever page you set as the confirmation page.
Forum: Plugins
In reply to: [10WebSocial] Feed suddenly stopped workingI’m also running into this issue.
Did not get any error messages in the admin when creating the feed, but looking at Chrome’s console, I’m seeing this error:
Uncaught TypeError: Cannot read property ‘url’ of null
at Object.wdi_front.getFileName (wdi_frontend.min.js?ver=1.3.25:1)
at Object.wdi_front.parseLighboxData (wdi_frontend.min.js?ver=1.3.25:1)
at Object.wdi_front.smartPicker (wdi_frontend.min.js?ver=1.3.25:1)
at Object.wdi_front.feedSort (wdi_frontend.min.js?ver=1.3.25:1)
at Object.wdi_front.displayFeed (wdi_frontend.min.js?ver=1.3.25:1)
at Object.wdi_front.saveUserData (wdi_frontend.min.js?ver=1.3.25:1)
at Object.success (wdi_frontend.min.js?ver=1.3.25:1)
at q (wdi_instagram.min.js?ver=1.3.25:1)
at Object.success (wdi_instagram.min.js?ver=1.3.25:1)
at i (jquery.js?ver=1.12.4-wp:2)Forum: Plugins
In reply to: [WooCommerce] Changing Domain causes Products to DisappearI had a spare domain so I pointed the clone to that domain and all the products were still there. I appears that the issue happens with just the original domain. Any ideas why this might happen?
I’ve updated the plugin to the latest and it seems to have fixed the problem.
I took a different approach to get it to work. Created the links, hid the buttons, and then used Javascript to have the links I created trigger the click on the hidden original buttons. Seems to work.
Is there a way to have a custom field only show up on the modal window?
I thought that the donation total that’s getting passed onto the form is coming from <input type=”hidden” name=”give-price-id” value=”4″> but I guess it’s coming from somewhere else. Can you tell me where it gets the value from? I see the input with ID “give-amount” but changing its value doesn’t seem to carry over.
Thanks for the idea.
Using Javascript, can I create custom buttons and then update the value of this:
<input type=”hidden” name=”give-price-id” value=”4″>
Then just hide the default buttons?
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Not Highlighting on PageI tried it both ways:
global $wp_query; echo relevanssi_highlight_terms(get_field('additional_information'),$wp_query->query_vars['s']);
and
global $wp_query; echo relevanssi_highlight_terms(get_field('additional_information'),get_search_query());
But still no change. I tried hard coding a term in the code and the highlighting worked, so it looks like it’s just not able to access the variable in the querystring.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Not Highlighting on PageHere’s the template code:
<?php /* Template Name: Product Detail */ ?> <?php get_header(); ?> <div id="content_wrapper" class="clearfix secondary_sidebar"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div id="category_banner" class="grid_12 clearfix"> <div id="category_info"> <div> <?php $title = get_field('product_title') ? get_field('product_title') : get_the_title(); echo('<div id="page_title">' . $title . '</div>'); ?> <?php get_field('description') ? the_field('description') : ''; ?> <?php if($post->post_parent) { $parent_link = get_permalink($post->post_parent); $parent_title = get_the_title($post->post_parent); if ($parent_title <> 'Products') { ?> <p><a href="<?php echo $parent_link; ?>">Return to <?php echo $parent_title; ?></a></p> <?php } } ?> </div> </div> <?php $image = wp_get_attachment_image_src(get_field('product_image'), 'category-thumb'); ?> <img src="<?php echo $image[0]; ?>" alt="" style="display: block; margin: 0 auto;" /> </div> <!-- Begin Additional Info Toggle Box --> <?php if (get_field('additional_information')) { ?> <div class="grid_12"> <div id="product_specs_box_wrapper"> <a href="#" id="togglebox"> <h2><?php $boxheading = get_field('product_toggle_box_heading') ? get_field('product_toggle_box_heading') : "Specifications"; echo $boxheading; ?></h2> </a> <div id="product_specs_box" class="clearfix"> <?php if (isset($wp_query->query_vars['s'])) { echo relevanssi_highlight_terms(get_field('additional_information'),$wp_query->query_vars['s']); } else { the_field('additional_information'); } ?> </div> </div> </div> <script type="text/javascript"> jQuery(document).ready(function($) { $('#togglebox').click(function() { toggleLink = $(this).parent().find('#togglebox'); if (toggleLink.hasClass('expanded')) { toggleLink.removeClass('expanded'); } else { toggleLink.addClass('expanded'); } $('#product_specs_box').fadeToggle(); return false; }); $('.product_chart tr:nth-child(even)').addClass('alt'); console.log(document.referrer); }); </script> <?php } ?> <!-- End Additional Info Toggle Box --> <?php endwhile; else: ?> <p> <?php _e('Sorry, no posts matched your criteria.'); ?> </p> <?php endif; ?> </div> <?php get_footer(); ?>
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Not Highlighting on PageI tried adding this to the page’s template but there’s no difference in what’s outputted.
if (isset($wp_query->query_vars['s'])) { echo relevanssi_highlight_terms(get_field('additional_information'),$wp_query->query_vars['s']); }
Here’s a sample URL https://waterwayplastics.com/products/pool-products/chlorinators/chlorinators-2/#s=”400-5200″
Any ideas what I’m doing wrong?
Well in that case I’ve tried both without luck. I checked out the terms table in the database and see that there’s a column for order. I added numbers in that column and it worked to sort them. It would be nice though to be able to do this through the backend of the site.
I tried switching the hierarchy to false for the custom taxonomy but still am not getting the Taxonomy Order menu under the custom post type.
Forum: Plugins
In reply to: [Event Organiser] [Plugin: Event Organiser] List events of current weekHi Stephen,
Thanks for the help. Great plugin.
Joel
Forum: Plugins
In reply to: [Event Organiser] [Plugin: Event Organiser] Modal Box with Event DescriptionI added a specific time for the event and saw that it added it to the calendar view.
Hopefully there’s a way to make event details open in a modal box.
I had a problem with the textarea entry getting truncated and I think it was related to this issue. The problem is that on the new versions of Gravity forms the get_field_value_long() function is expecting to get passed 3 arguments and the first one is supposed to be an array. The directory addon is passing an integer ID.
I created a duplicate of the function and changed it to use a regular integer instead of an array, then called the new function from the directory addon and the truncating was fixed.
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]