Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mikerodger

    (@mikerodger)

    Sounds good, thank you.

    Any chance you could give us a manual export in the time before the feature is available?

    Thread Starter mikerodger

    (@mikerodger)

    Ideally we would be able to get an export of all the fields collected in the log. When I look at Details in the log, it includes all of the standard fields and the custom fields. I’d like to get an export that includes all of both standard and custom fields.

    Our site is investingnews.com. We are using CleanTalk on all of our forms.

    I’m having this trouble also. It seems to be interacting with the redirection system that WP has. I’ve tried cloning posts to create a new post with a new URL that should be outside of the redirection system. But regardless what I do, I cannot get a post to not be redirected.

    Thread Starter mikerodger

    (@mikerodger)

    I reached out to Charles, the developer. He got right back to me with the following which worked perfectly:

    Hi Mike,

    Thanks for checking in on this. Here is some sample code to make use of the technique that we discussed on the phone. The technique is to write a function that attaches to the syndicated_post_slug filter which will grab the data you need and then use it to rewrite the slug for FeedWordPress. Here’s a sample code snippet; this would go in your functions.php file or in a similar place where it is guaranteed to load whenever WordPress loads up.

    add_filter(
    /*hook=*/ ‘syndicated_post_slug’,
    /*function=*/ ‘fwp_grab_slug_from_feed’,
    /*order=*/ 10,
    /*arguments=*/ 2
    );

    function fwp_grab_slug_from_feed ($slug, $post) {
    $pn = $post->query(‘/post_name’);
    if (count($pn) > 0) :
    $slug = reset($pn);
    endif;
    return $slug;
    }
    The $post->query(‘/post_name’) method is what attempts to retrieve data from the custom field in the field. If you need to get your data from a different element in the field, just change the XPath expression from /post_name to indicate the name of the field you want instead.

    Let me know if this helps!

    Cheers,
    -C

    Thanks Charles!

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