Forum Replies Created

Viewing 15 replies - 1 through 15 (of 43 total)
  • Thread Starter toastiestudio

    (@toastiestudio)

    A fix for the plugin code that would still allow exclude_from_search to be true would be:

    line 495 duplicate-post-admin.php
    replace
    //$children = get_posts(array( 'post_type' => 'any', 'numberposts' => -1, 'post_status' => 'any', 'post_parent' => $post->ID ));
    with

    $duplicate_post_types_enabled = get_option('duplicate_post_types_enabled', array ('post', 'page'));
    	if(!is_array($duplicate_post_types_enabled)) $duplicate_post_types_enabled = array($duplicate_post_types_enabled);	
    	$childargs = array('numberposts' => -1, 'post_status' => 'any', 'post_parent' => $post->ID, 'post_type' => $duplicate_post_types_enabled);
    	
    	$children = get_posts($childargs);
    Thread Starter toastiestudio

    (@toastiestudio)

    After some more testing I found the issue!

    For a custom post type to clone children you need to have
    'exclude_from_search' => false,

    If set to true, it is excluded from ‘post_type’ => ‘any’

    • This reply was modified 6 years, 5 months ago by toastiestudio.
    Thread Starter toastiestudio

    (@toastiestudio)

    I wrote the code myself.

    This is the post type

    function create_resources_post_type() {
    	register_post_type( 'dcr-resources',
    		array(
    			'labels' => array(
    				'name' => _x( 'Resources', 'my_custom_post','custom' ),
            		'singular_name' => _x( 'Resource', 'my_custom_post', 'custom' ),
         	  		'add_new' => _x( 'Add New', 'my_custom_post', 'custom' ),
          			'add_new_item' => _x( 'Add New Resources Post', 'my_custom_post', 'custom' ),
            		'edit_item' => _x( 'Edit Resources Post', 'my_custom_post', 'custom' ),
            		'new_item' => _x( 'New Resources Post', 'my_custom_post', 'custom' ),
            		'view_item' => _x( 'View Resources Post', 'my_custom_post', 'custom' ),
            		'search_items' => _x( 'Search Resources Posts', 'my_custom_post', 'custom' ),
            		'not_found' => _x( 'No Resources Posts found', 'my_custom_post', 'custom' ),
            		'not_found_in_trash' => _x( 'No Resources Posts found in Trash', 'my_custom_post', 'custom' ),
            		'parent_item_colon' => _x( 'Parent Resources Post:', 'my_custom_post', 'custom' ),
            		'menu_name' => _x( 'Resources', 'my_custom_post', 'custom' ),
    			),
    			'description' => 'Resources Posts',
            	'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'revisions', 'custom-fields', 'page-attributes'),
    			'taxonomies' => array('dcr-resources_categories'),
    			'hierarchical' => false,
     			'public' => true,
    			'show_ui' => true,
    			'show_in_menu' => true,
    			'menu_position' => 25,
    			'menu_icon' => 'dashicons-carrot',
    			'can_export' => true,
    			'has_archive' => true,		
    			'exclude_from_search' => true,
    			'capability_type' => 'page',
    			'rewrite' => array('slug' => 'resources','with_front' => FALSE),
    		)
    	);
    }
    add_action( 'init', 'create_resources_post_type' );

    I am having the same issue trying to get the list to sort by menu order.

    My shortcode is
    [qcopd-directory mode="one" list_id="205" style="simple" column="1" orderby="menu_order" order="DESC"]

    And I want the list to be sorted so the list elements appear in reverse order to how you see them in the backend.
    I also tried sorting it by title, date etc, but nothing seemed to affect how it showed on the page.

    toastiestudio

    (@toastiestudio)

    I have exactly the same error on my website

    <span class="price"><span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">&euro;</span>19.50</span></span>
    </a><div class="gridlist-buttonwrap"><a rel="nofollow" href="/nl/prodcut-category/brownies-nl/?add-to-cart=292" data-quantity="1" data-product_id="292" data-product_sku="" class="button product_type_simple add_to_cart_button ajax_add_to_cart">In winkelmand</a></div><hr /><span data-content_category="

    Except I don’t have the product filter plugin, so don’t think it is specific to that plugin.

    Plugin Author toastiestudio

    (@toastiestudio)

    Unfortunately I don’t know if there would be a way with the WPML plugin to translate the title string.

    I have never used that plugin myself and since it is a purchased plugin I can’t look into and test ways to make it work with my plugin.

    Sorry I can’t be more help.

    Plugin Author toastiestudio

    (@toastiestudio)

    You can set the image url for each button in the settings panel.
    You can also use a mix of custom and default buttons by only setting the image url for the buttons you want a custom image for.

    Settings page:
    http://www.sitename.com/wp-admin/admin.php?page=Woocommerce-social-media-share-button-plugin

    Plugin Author toastiestudio

    (@toastiestudio)

    I can’t speak for the Yoast plugin (although I do like to also use it myself).

    At least this plugins open graph option adds SEO meta tags to your sites code for each of the social media platforms.
    The main reason the wrong image shows is often if the main product image is too small (most like images it to be at least 300px). When the image is too small it looks for an alternative image.

    If the problem is mostly with Facebook (as that seems to cause the most problems) you can try their debug tool https://developers.facebook.com/tools/debug/, see what error that may give.

    Plugin Author toastiestudio

    (@toastiestudio)

    At the moment I don’t have the option to turn off the buttons.
    Easiest might be to remove the main action of the plugin by adding the following code to your functions.php file.

    remove_action( 'woocommerce_single_product_summary', 'toastie_wc_smsb_form_code', 31 );

    The Russian facebook issue, I am not sure how to fix that. Will see if I can include something in the next update.

    Plugin Author toastiestudio

    (@toastiestudio)

    Opengraph is part of SEO, it is what Facebook use for getting the correct information for sharing etc.

    If you have a decent SEO plugin already installed that works with woocommerce then there is no need to enable the open graph for this plugin, it would just duplicate code.

    Overall though, adding the information to your site should not really affect site loading time etc.

    Plugin Author toastiestudio

    (@toastiestudio)

    Hi Vindisue,
    I took a look at the site, at least for me the Facebook button does show, although it is the last to load as Facebook can sometimes be a bit slow as they use an iframe for it.
    If it continues to not load you could try replacing it with a custom button image of just the general facebook share button, that would solve any issues.

    Plugin Author toastiestudio

    (@toastiestudio)

    Opengraph is part of SEO, it is what Facebook use for getting the correct information for sharing etc.

    If you have a decent SEO plugin already installed that works with woocommerce then there is no need to enable the open graph for this plugin, it would just duplicate code.

    Overall though, adding the information to your site should not really affect site loading time etc.

    Plugin Author toastiestudio

    (@toastiestudio)

    Pretty much the same way, but by adding a number to the end of the add_action we would tell it to execute the actions in a particular order.
    (99 would pretty much always mean last).

    remove_action( 'woocommerce_single_product_summary', 'toastie_wc_smsb_form_code', 31 );
    
    add_action( 'woocommerce_product_thumbnails', 'toastie_wc_smsb_form_code', 99 );

    You can also see other woocommerce hooks here:
    https://docs.woothemes.com/wc-apidocs/hook-docs.html

    Plugin Author toastiestudio

    (@toastiestudio)

    On further testing, these counts will not show if the count is 0.
    This is a setting on those platforms and not something that can be overwritten.

    Plugin Author toastiestudio

    (@toastiestudio)

    Hi,
    Thank you for including a link, it really helps troubleshoot.

    From the looks of it, I think you have specified text in the button image field for facebook, twitter and linkedin.

    If you want to use the default buttons you need to leave the ‘Custom Button Image’ fields empty. Otherwise you need to specify a correct image link, not just your facebook page link etc.

Viewing 15 replies - 1 through 15 (of 43 total)