Read CSV data from local files, WordPres media files, local or remote databases or 3rd party API, and output it anywhere WordPress with using shortcodes, in posts pages, headers footers, widgets or Visual Composer..
Belgium, Brussels, EUR, Euro, BE,be Belize, Belmopan, BZD, Dollar, BZ,bz Benin, Porto-Novo, XOF, Franc, BJ,bj Bhutan, Thimphu, BTN, Ngultrum, BT,bt.
After the CSV input has been parsed, the resulting lines are passed to your Twig Template as the data variable.
So, we will use HTML tags.. to make table. to make header with column headings. to make body with all the rows from CSV.. to make table row.. to make in the header's row.. to make in regular rows in the table's body..
Notice how we use the {% for row data %} syntax to loop over CSV lines, and then output table row. inside the loop, so that new row is made for every CSV line..
Once you are happy with the preview, you will want to embed it somewhere in post or page, header, in widget or as Visual Composer block..
To do automatic install of Twig Anything CSV, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New..
Twig Anything WordPress plugin, it can fetch your CSV input from various sources local file, URL, MySQL database and many more with custom source add-ons...
Note that the the sequence of all CSV lines is always passed to your template as data variable and in the order as it appears in the source ...
Browse the code, check out SVN repository, or subscribe to the development log by RSS...
Read more