Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter CanadianKevbo

    (@canadiankevbo)

    My feed updated last night and had the short description in the details properly with no errors. I hope the code above helps!

    Thread Starter CanadianKevbo

    (@canadiankevbo)

    Finally found a solution. I’m putting it here in case anyone else needs it. I haven’t fully tested if there are bugs, but it all seems good. This takes the short description in your product and makes sure it puts it as the <description> in the product feed generated, it also appears for any variations of those items. I’m sure the logic can be used for other purposes. So you may want to refer to it. I simply put it in my child theme’s functions.php but it could go in a plugin. I’ll wait till my feed gets updated to Pinterest then come back and confirm if everything is good.

    //pulls short description and puts it in pinterest for woocommerce product feed
    function use_short_description_in_pinterest_feed( $xml, $product ) {
    // Ensure we're working with the correct product (parent if necessary)
    if ( $product->is_type('variation') ) {
    $product = wc_get_product( $product->get_parent_id() );
    }

    // Retrieve the short description
    $short_description = $product->get_short_description();

    // Fallback to excerpt if short description is empty
    if ( empty( $short_description ) ) {
    $short_description = get_the_excerpt( $product->get_id() );
    }

    // Sanitize and prepare the description for XML
    $description = '<![CDATA[' . wp_strip_all_tags( $short_description ) . ']]>';

    // Replace the existing <description> tag with the short description
    $xml = preg_replace( '/<description>.*?<\/description>/', '<description>' . $description . '</description>', $xml );

    return $xml;
    }

    // Hook into the Pinterest feed generation to apply the short description
    add_filter( 'pinterest_for_woocommerce_feed_item_xml', 'use_short_description_in_pinterest_feed', 10, 2 );
    Thread Starter CanadianKevbo

    (@canadiankevbo)

    That is unfortunate. These are student practicum positions, positions that are required by their degrees to complete and part of employment structure in Canada. Indeed would be wise to add these types of listings as thousands of Canadians look for these per year. Without the ability to list them this is preventing students from finding work for acquiring the experience they need.

    Thread Starter CanadianKevbo

    (@canadiankevbo)

    The issue with the memory allocation has been ongoing and I see many other people relating it to your plugin. It is an easy thing to say that it has nothing to do with it, but it’s a constant between other users so there is definitely an incompatibility and something within the plugin that should be modified. I see you attempted to prior but even with those updates it did not solve it. I solved in a roundabout way through other means.

    Further, the slider issue only began occurring as soon as I deactivated your plugin. Prior, there were no issues. Furthermore, there is zero wrong with my hosting as this has been our hosting for several years with no problems whatsoever, using our caching plugins, this theme, and Fast Velocity Minify.

    While I appreciate you responding, I do not find a resolution in this answer. It is easy to say to everyone who comes to you that it is not related to fast velocity minify and have them be on their way.

    Currently, if I turn off your plugin my site loses all its CSS. I turn it back on, everything goes back into place but slider function not working. I am basically stuck with your Plugin and you are telling me it has nothing to do with the problem. That’s a very easy copout but extremely unhelpful.

    If you care to look for reference, I have since turned off your plugin and will leave it that way for an hour or so so you can see how the site is malfunctioning. I will turn it back on then try to find a solution on my own if you are unwilling to look into this issue in depth to solve.

    Thread Starter CanadianKevbo

    (@canadiankevbo)

    Oh, forgot to mention that I did reactivate Fast Velocity Minify after solving the memory allocation issue and am having the above problem

    Thread Starter CanadianKevbo

    (@canadiankevbo)

    I am using x-theme and revolution slider

    Hello Tung. I would like to know if this parser app requires a lot of knowledge with coding and site development. I just want to be able to do something easily that will take the images from the RSS/News feeds I’m pulling from and turning into blog posts.

    Please respond as soon as you have the chance. If this add-on will easily work for me then I will likely get it. Please also include a link to the app here.

    Thank you!

    PS. The WPPipes is good. I understand needing to charge something for add-ons, but please don’t do it with every good feature! There is a reason people like the app and being free is a big part of it. Charging extra for specialty things makes sense. Images are extremely important in these blog posts.

    Thanks again!

Viewing 7 replies - 1 through 7 (of 7 total)