K
K
khodos_dmitry2018-02-15 16:32:35
WordPress
khodos_dmitry, 2018-02-15 16:32:35

How to display the brief content of the news in WordPress if it is generated by a php script?

All news looks like this:

require_once $_SERVER['DOCUMENT_ROOT']."/mycomponents/getnews.php";
echo get_news ($news = 1);

Nothing is displayed in the summary.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lone Ice, 2018-02-15
@daemonhk

get_news is a custom function? Climb into it and write down the condition by which you want to display a brief description.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question