• Resolved erikvlie

    (@erikvlie)


    I use a Custom Post Type plug-in called Content Blocks. It allows you to create posts with the absolute minimum of fields, and use them for short text snippets in sidebars, etc.

    I love Content Blocks and would love them even better if RSS Multi Importer could directly write to them as it can now to “common” posts for simple news announcements.

    Is this something that could easily be programmed in, then I would love to see it in a next update. Even though I can’t program myself, I do see a number of problems: there are no categories, no tags and no images associated with these Content Blocks…

    What do others think of it?

    http://wordpress.org/extend/plugins/wp-rss-multi-importer/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Allen

    (@amweiss98)

    are you using the Feed to Post option which posts directly to your blog as posts…which could then be picked up by your Content Blocks plugin (as long as it creates the presentation from the blog posts).

    Thread Starter erikvlie

    (@erikvlie)

    Yes, I am. But these Content Blocks don’t take over anything from Posts. It’s all copy-paste. Not that this is a problem. I edit the news snippets, add to them from other source — I do my journalistic homework in other words — and make them my own anyway.

    It would save me one step in that process, though. I’ve thought about trying to use different formats — an aside, for example –but to be honest I don’t quite grasp what the formats are for.

    Plugin Author Allen

    (@amweiss98)

    Is the plugin putting the content in the post table or the post_meta table..do you know? Also, there are many plugins with content blocks in the name..which specific plugin are you using?

    Thread Starter erikvlie

    (@erikvlie)

    Hi Allen the plug-in is called “Custom Post Widget” and you can find it here: http://wordpress.org/extend/plugins/custom-post-widget/

    It looks like it’s adding it to the post table — I did a simple search on all tables with phpMyAdmin.

    Plugin Author Allen

    (@amweiss98)

    ok..I’ll take a look and see what’s going on.

    Plugin Author Allen

    (@amweiss98)

    You know, after looking at this, it seems the widget in my plugin would do the same…have you tried the widget?

    Thread Starter erikvlie

    (@erikvlie)

    Yes, I have.

    Your widget “only” pulls in the feed. What I want — and therefore use the Content Block thing — is that I can change the text so that I can add links or remove some extraneous info that I don’t want. All while leaving the byline and source intact.

    I like to have that capability because as a journalist I want to both quote someone else and (sometimes) add my own research results to the snippet.

    Plugin Author Allen

    (@amweiss98)

    Ok..there may be a way to very easily do this if you change the post type to “content_block” in the import_feed.php file…do you know how to do this?

    You would add this to the file:

    $post[‘post_type’] =’content_block’;

    Thread Starter erikvlie

    (@erikvlie)

    Hi Allen,

    You rock! I edited the import_posts.php file and added the line you mention on line number 567 (Coda 2’s line numbering) right after
    $post[‘post_title’] = trim($items[“mytitle”]);

    It works like a charm!
    Many, many thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Suggestion: allow posting to custom post types’ is closed to new replies.