WordPress.org

Plugin Directory

Import CSV, Excel, XML, JSON, SQL and multiple formats as posts or users (Feed2Post)

Import CSV, Excel, XML, JSON, SQL and multiple formats as posts or users (Feed2Post)

外掛說明

Feed2Post provides the following import formats and parameters :

  • None : Allows you to define a custom post type and attributes (like pods), but with no import
  • CSV : URL, separator, encoding, header
  • Excel (XLS, XLSX, ODS) : URL, sheet name, header
  • XML : URL, XPath query
  • RSS : URL
  • JSON : URL, JSONPath query
  • PDO/SQL : DSN string, user, password, SQL select query
  • TOURINSOFT / SIRTAQUI V0 : Module ID
  • TOURINSOFT / SIRTAQUI V3 : Client ID, Module ID
  • IMMO-FACILE / AC3 : URL
  • Open AI / Chat GPT : Organization ID, Api key, Prompt

FREE VERSION :

Can import only one feed with 30 posts.

PRO VERSION :

Can import unlimited feeds with unlimited posts.

You can buy the plugin on our WordPress plugin shop

Each import format has the following parameters :

  • Post type
  • Permalink
  • Identifier field
  • Show UI (in admin panel)
  • Supports comments
  • Supports custom fields
  • Cron period
  • Delete missing posts
  • Display options (override templates, custom CSS, etc.)
  • Hide not imported fields
  • Field list : title, content, taxonomies, metas, date, author, thumbnail, medias, extract

Feed2post provides the following features :

  • Feed can be manually or automatically (cron) imported
  • Manually delete feed posts
  • Drag and drop fields
  • Add custom (non imported) fields with static values
  • Import feeds into existing or new post type (multiple feeds can be imported to a single post type)
  • Map feed fields to WordPress fields
  • Automatic mapping for specific formats (e.g. SIRTAQUI V3)
  • Filters and actions on most functions
  • A [feed2post] shortcode with the following features :
    • Display field value : [feed2post field="..."]
    • Display search form : [feed2post template="searchform" fields="..."]
  • WP CLI command for native cron tasks
  • Log file and debug mode

Feed2Post provides display options and custom templates to handle a basic display with no code.
But it is highly recommended to disable the Feed2Post display options
and to use instead a page builder like Elementor, so you can create custom templates for you post types.
Elementor Pro and Elementor Custom Skin plugins can also be used to create dynamic field tags and archive loops.

Do not hesitate to contact technique@ircf.fr for more info or technical support.

螢幕擷圖

  • Feed2Post general settings
  • Feed list
  • CSV options
  • PDO/SQL options
  • XML options
  • SIRTAQUI options
  • Basic archive display with search form (with Elementor)
  • Basic single display (with Elementor)

安裝方式

  1. Upload feed2post to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常見問題集

How to implement additional import formats ?

To create a new import format, you can create a plugin or set the following code into your functions.php :

<?php
class Feed2Post_Myformat extends Feed2Post_Feed{ 
  // See examples in includes/feeds
}

function feed2post_feed_type_myformat($types){
  $types['Feed2Post_Myformat'] = __('Myformat', 'feed2post');
  return $types;
}

add_filter('feed2post_feed_types', 'feed2post_feed_type_myformat');

If you don’t have the knowledge, you can also ask us at technique@ircf.fr

Can I import users ?

Yes, you can specify “user” as post type.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Import CSV, Excel, XML, JSON, SQL and multiple formats as posts or users (Feed2Post)〉的開發相關工作。

參與者

變更記錄

1.31

Added Open AI / Chat GPT format (experimental).

1.30

Fixed permalink required bug.
Sirtaqui v3 : Added view feed link.

1.29

Added delete trash posts.
Re-Fixed bug when editing existing post type.
Fixed counting users.

1.28

Fixed bug when editing existing post type.
Fixed memory fatal error when counting posts.

1.27

AC3 : Improved fields mapping.
Added max_input_vars error notice.
Fixed default option bug.
Fixed admin page titles.

1.26

XML : Fixed loadXML fatal error for PHP8.
AC3 : Improved fields mapping.

1.25

Added IMMO-FACILE / AC3 format.
Added lines_fields option.
Fixed multiple fields into a single field.
XML : Fixed mutliples values for meta, images, terms.
PDO : Removed lines_start|lines_length options.

1.24

Added options : post_id_match, lines_start, lines_length.
Added stop and dismiss buttons to notices.
Misc bug fixes.

1.23

Added notices on import begin|end.
Better error handling.

1.22

Added has_archive and public options.
Added asynchronous import with ajax notices.
Added autocomplete taxonomy and meta.
Added view feed link.
Hide post_type options if existing post_type.
Changed titles.

1.21

Added wp cli feed2post command for native cron tasks.
Added log file and debug mode.
Display updated duration.

1.20

Remove http options in tourinsoft.
Skip medias with empty url.
Fixed update user passwords.

1.19

Added feed to feed2post_get_field_value filter.

1.18

Fixed user import.
Show disable update field.
Fixed csv error.

1.17

Fixed cron condition, fixed user errors.

1.16

Added cache purge, fixed cron errors, added media logs.

1.15

Fixed error when media is null.

1.14

Fixed search form bugs.

1.13

Fixed medias not uploaded when same URLs.
Fixed medias tmp files not deleted.

1.12

Added http method and headers options.

1.11

Fixed medias update bug.
Added search form filters.

1.10

Better searchform.

1.9

Added RSS.
Fixed register_post_type.
Fixed languages bug.

1.8

Fixed row action filter.
Fixed taxonomy max length.

1.7

Fixed invalid feed errors.
Fixed checkbox options bug.
Fixed searchform.
Fixed permalinks flush.

1.6

Added automatic mapping to sirtaqui v3.
Fixed meta array -> single values.

1.5

Fixed fr_FR -> fr language.

1.4

Fixed single value bug.

1.3

Added Excel format.
Added hide not imported fields option.
Moved archive/single columns to display options.

1.2

Added users import.
Added json import.
Added sirtaqui v3 import.
Fixed xml import.
Optimized medias import.
Misc fixes.

1.1

Misc fixes.

1.0

Initial commit.