Forum Replies Created

Viewing 9 replies - 16 through 24 (of 24 total)
  • Thread Starter squarestar

    (@squarestar)

    Thanks for responding. I do have content that is published, but only of a custom post type. After adding 'post_type' => 'any' to the $args for get_posts() in that function, the process worked without error

    Thread Starter squarestar

    (@squarestar)

    @ddoddsr Thank you! πŸ™‚

    Thread Starter squarestar

    (@squarestar)

    Hi – unfortunately the install is on a private internal server. However in the current version of the script you can see here:

    
    line 432	var current = $('.main-nav li.current-menu-item a').html();
    line 433	current = $('.main-nav li.current_page_item a').html();
    

    The initial value of current is immediately overwritten with no conditions, so it is redundant, even though actually has a value on front end pages that are ‘current’ but are not of the post-type page.

    In my case the problem is made evident by a custom link in the main menu. I have a custom post type of Daily Menu and a custom link to the archive page for that post type in the main menu whose value is /daily-menu/. On the front end, the li item for that link has the class current-menu-item, but none of the main menu list items have the class current_page_item, so when I land on that archive page on a mobile device, the title beside the burger menu is empty.

    Thread Starter squarestar

    (@squarestar)

    Thanks for the update. That has certainly helped. However I’m getting a few problems still.

    Please try the following:

    1. Go to http://apex.btmm-dev.com/product-category/gc-columns/
    2. Use any filter (e.g., filter by Brand “Beta-Dex”)
    3. Click the “Reset” button for the Smart Column Selector

    The product list reloads but the filter still remains hidden. The same thing happens if you click the red X with the “beta-dex” text above the product list instead of hitting Reset.

    Another minor issue: on this page: http://apex.btmm-dev.com/products/ there is a PHP warning from one of the plugin’s methods.

    Thread Starter squarestar

    (@squarestar)

    Thanks Pearl – woocommerce status report is below.

    I disabled all but the necessary plugins to place a test order. The order shows up in the orders list but the confirmation email regarding the subscription is still not being sent and the list under connected accounts is still stuck syncing.

    
    ### WordPress Environment ###
    
    Home URL: https://irnn.ie
    Site URL: https://irnn.ie
    WC Version: 3.1.1
    Log Directory Writable: βœ”
    WP Version: 4.8.1
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: βœ”
    WP Cron: βœ”
    Language: en_GB
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.0.11
    PHP Post Max Size: 64 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.19.7
    NSS/3.27.1
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.37
    Max Upload Size: 64 MB
    Default Timezone is UTC: βœ”
    fsockopen/cURL: βœ”
    SoapClient: βœ”
    DOMDocument: βœ”
    GZip: βœ”
    Multibyte String: βœ”
    Remote Post: βœ”
    Remote Get: βœ”
    
    ### Database ###
    
    WC Database Version: 3.1.1
    WC Database Prefix: wp_
    woocommerce_sessions: βœ”
    woocommerce_api_keys: βœ”
    woocommerce_attribute_taxonomies: βœ”
    woocommerce_downloadable_product_permissions: βœ”
    woocommerce_order_items: βœ”
    woocommerce_order_itemmeta: βœ”
    woocommerce_tax_rates: βœ”
    woocommerce_tax_rate_locations: βœ”
    woocommerce_shipping_zones: βœ”
    woocommerce_shipping_zone_locations: βœ”
    woocommerce_shipping_zone_methods: βœ”
    woocommerce_payment_tokens: βœ”
    woocommerce_payment_tokenmeta: βœ”
    MaxMind GeoIP Database: βœ”
    
    ### Security ###
    
    Secure connection (HTTPS): βœ”
    Hide errors from visitors: ❌Error messages should not be shown to visitors.
    
    ### Active Plugins (14) ###
    
    Gravity Forms: by rocketgenius – 2.2.4
    iThemes Security: by iThemes – 6.4.0
    Duplicate Post: by Enrico Battocchi – 3.2
    Force Regenerate Thumbnails: by Pedro Elsner – 2.0.6
    WPBakery Visual Composer: by Michael M - WPBakery.com – 5.2.1
    MailChimp for WooCommerce: by MailChimp – 2.0.1
    Muffin Builder & Theme Options Migrate Tool: by Muffin group – 3.2
    QR Twitter Widget: by QROkes – 0.2.0
    Slider Revolution: by ThemePunch – 5.4.3.1
    The Events Calendar: by Modern Tribe
    Inc. – 4.5.10
    
    WooCommerce Stripe Gateway: by WooCommerce – 3.2.2
    WooCommerce Subscriptions: by Prospress Inc. – 2.2.8 – 2.2.11 is available
    WooCommerce: by Automattic – 3.1.1 – 3.1.2 is available
    WP Remote: by maekit – 2.7.8
    
    ### Settings ###
    
    API Enabled: βœ”
    Force SSL: –
    Currency: EUR (€)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    subscription (subscription)
    variable (variable)
    variable subscription (variable-subscription)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    ### WC Pages ###
    
    Shop base: #241 - /shop/
    Basket: #242 - /cart/
    Checkout: #243 - /checkout/
    My account: #244 - /my-account/
    
    ### Theme ###
    
    Name: Irish Research Nurses Network (IRNN)
    Version: 1.6.1
    Author URL: http://irnn.ie/
    Child Theme: βœ”
    Parent Theme Name: Betheme
    Parent Theme Version: 20.4.3
    Parent Theme Author URL: http://muffingroup.com/
    WooCommerce Support: βœ”
    
    ### Templates ###
    
    Overrides: betheme/woocommerce/archive-product.php
    betheme/woocommerce/cart/cart-empty.php version 2.0.0 is out of date. The core version is 3.1.0
    betheme/woocommerce/cart/cart.php
    betheme/woocommerce/cart/mini-cart.php
    betheme/woocommerce/content-product.php
    betheme/woocommerce/content-single-product.php
    betheme/woocommerce/loop/loop-end.php
    betheme/woocommerce/loop/loop-start.php
    betheme/woocommerce/loop/no-products-found.php
    betheme/woocommerce/loop/pagination.php
    betheme/woocommerce/notices/error.php
    betheme/woocommerce/notices/notice.php
    betheme/woocommerce/notices/success.php
    betheme/woocommerce/single-product/add-to-cart/external.php
    betheme/woocommerce/single-product/product-image.php
    betheme/woocommerce/single-product/product-thumbnails.php
    betheme/woocommerce/single-product/sale-flash.php
    betheme/woocommerce/single-product/tabs/additional-information.php
    betheme/woocommerce/single-product/tabs/description.php
    betheme/woocommerce/single-product/tabs/tabs.php
    betheme/woocommerce/single-product/title.php
    
    Outdated Templates: ❌Learn how to update
    
    ### subscriptions ###
    
    WCS_DEBUG: βœ” No
    Subscriptions Mode: βœ” Live
    

    I can confirm this solves a conflict I encountered with ACF.

    I’m running code on the acf/save_post action to update the definition of an ACF field. ACF fields are saved as posts, and when the field is updated, its post_type gets changed from acf-field to the post_type of the post using the field.

    Please update! PTS is great but ACF is critical to the functioning of the site this is happening on.

    Thread Starter squarestar

    (@squarestar)

    You’re welcome Aleksandar. Thanks again πŸ™‚

    Thread Starter squarestar

    (@squarestar)

    Hi Aleksandar,

    Yes, that fixes the problem. It’s custom code of my own that I’m using (just 3 functions):

    
    function addTitleHrefFieldToWidgets($widget, $return, $instance)
    {
        // Don't add the field to widgets with no title
        if (empty($widget->get_field_id('title'))) {
            return;
        }
    
        $href = isset($instance['title_link']) ? $instance['title_link'] : '';
    ?>
    
        <p>
        <label>
        Title Link:
        <input type="url" id="<?php echo $widget->get_field_id('title_link'); 
            ?>" name="<?php echo $widget->get_field_name('title_link'); 
            ?>" value="<?php echo $href; ?>" placeholder="https://" >
        </label>
        </p>
    
        <?php
    }
    add_filter('in_widget_form', 'addTitleHrefFieldToWidgets', 10, 3);
    
    function saveWidgetTitleLinkOption($instance, $newInstance)
    {
        if (!empty($newInstance['title_link'])) {
            $instance['title_link'] = $newInstance['title_link'];
        }
    
        return $instance;
    }
    add_filter('widget_update_callback', 'saveWidgetTitleLinkOption', 10, 2);
    
    function hyperlinkWidgetTitle($title, $instance)
    {
        if (empty($title) || empty($instance['title_link'])) {
            return $title;
        }
    
        $title = '<a href="' . $instance['title_link'] . '">' . $title . '</a>';
    
        return $title;
    }
    add_filter('widget_title', 'hyperlinkWidgetTitle', 10, 2);
    

    Thanks!

    I’m seeing this too.

Viewing 9 replies - 16 through 24 (of 24 total)