C
C
cheburashkaRF2015-12-16 12:39:05
PHP
cheburashkaRF, 2015-12-16 12:39:05

Displaying a specific post in a Wordpress template?

Can you tell me how to display a specific post in a template using the wordpress function? (For example, I need to display an entry with the title Benefit and its full content)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
litvin2, 2015-12-16
@litvin2

get_page_by_title ( $page_title, $output, $post_type )
https://codex.wordpress.org/Function_Reference/get...
And read the documentation at the link. There may be a situation when there are 2+ posts in the sample.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question