K
K
Kostyan2018-12-18 21:35:37
Angular
Kostyan, 2018-12-18 21:35:37

How to replace "Read more" with a widget in WordPress?

Greetings.
It is very necessary to replace "Read more" with a universal version, not only "Read more", but also in other languages.
I found on the Internet how to do it with the Russian version:

function new_more_text( $more_link, $more_link_text ) {
  $new = "продолжить чтение..."; // вписываем своё
  return str_replace( $more_link_text, $new, $more_link );
}
add_filter( 'the_content_more_link', 'new_more_text', 10, 2 );

I decided to do it with the help of widgets in different languages.
But here's how you can instead of "continue reading ..." insert a widget like:
<?php dynamic_sidebar( 'readmore' ); ?>
Please tell me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MNB, 2016-02-15
@MNB

pass the user's serial number to the controller (in the URL, for example). In the controller you intercept the number, by it you get the user and the list of his tasks. And you work only with a specific user.
To edit a task, make a new controller, and in the same way, you need to transfer the task or its number there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question