В настоящее время я использую этот код, который показывает начало кода каждого сообщения.
Я хочу показывать код в начале и конце каждого сообщения.
Кто-нибудь может помочь с этим?
add_filter( 'the_content', 'filter_the_content_in_the_main_loop' );
function filter_the_content_in_the_main_loop( $content ) {
// Check if we're inside the main loop in a single post page.
if ( is_single() && in_the_loop() && is_main_query() ) {
return esc_html__("So Friends, How is our Article of ".get_the_title().". Do You Like it? Don't Forget to Comment below if Any Queries. For More Article regarding ".get_the_title()." Subscribe Us.").$content;
}
return $content;
}
Подробнее здесь: https://stackoverflow.com/questions/595 ... -as-ending
Как разместить конкретный текст в каждом сообщении как в начале, так и в конце? ⇐ Php
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение