README.md 1.16 KB
Newer Older
Andreas Rex's avatar
Andreas Rex committed
1
2
3
# LNT-Feedimport
A Wordpress Plugin to import Feeds (News) from remote sites.<br />

Andreas Rex's avatar
Andreas Rex committed
4
## Description:
Andreas Rex's avatar
Andreas Rex committed
5
6

In the admin area several feeds can be defined via a URL.<br />
Andreas Rex's avatar
Andreas Rex committed
7
8
The URL is the feed of a specific category. 

Andreas Rex's avatar
Andreas Rex committed
9
## URL example: 
Andreas Rex's avatar
Andreas Rex committed
10
11
12
13
14

<strong>https://www.eei.tf.fau.de/category/eei/feed/</strong><br />

In the frontend, this feed can be displayed formatted inside the text of a page. This is done with a shortcode.<br />

Andreas Rex's avatar
Andreas Rex committed
15
## Shortcode Example: 
Andreas Rex's avatar
Andreas Rex committed
16
17
18
19
20

<strong>[feedimport id="1"]</strong><br />

On this page, all feeds are previewed. Each post is clickable and shows the full post. At the end of the full post is a link to return to the overview.<br />

Andreas Rex's avatar
Andreas Rex committed
21
## Shortcode Options:<br />
Andreas Rex's avatar
Andreas Rex committed
22
23
24
25
26
27
28

<strong>display=</strong>"default" or "widget" (optional)<br />

<strong>words=</strong>"number" (optional, default: 15)<br />Max words inside preview. Possible Values: -1 (All Words), 0 (No Words), 1 and more (max words)<br />

<strong>title=</strong>"text" (optional) Title in preview (Only in "widget" Mode)<br />

Andreas Rex's avatar
Andreas Rex committed
29
## Options Example:
Andreas Rex's avatar
Andreas Rex committed
30
31

<strong>[feedimport id="1" display="widget" title="News" words="10"]</strong><br />
Andreas Rex's avatar
Andreas Rex committed
32

Andreas Rex's avatar
Andreas Rex committed
33
## Screenshot:
Andreas Rex's avatar
Andreas Rex committed
34
35

![Screenshot](lnt-feedimport.png)