Skip to main content

New answers tagged

0 votes

How to increase comment length?

Solved the issue. Thank you @birgire for giving me a hint. First I edited MySQL wp_comments table by changing comment_content rows «Type» from TEXT to MEDIUMTEXT and restarted MySQL. Then created ...
Bolat Sabikhan's user avatar
0 votes

Make the 'all' filter default instead of 'mine' in a custom post type

This accepted answer did not work for me since I'd get an error saying too many redirects after bulk trashing posts while viewing the screen. Instead of trying to redirect the URLs like in the ...
AuRise's user avatar
  • 470
0 votes
Accepted

Filter hook for the action of listing users

Just like posts with WP_Query and pre_get_posts, there is WP_User_Query and pre_get_users that lets you modify the query parameters for fetching the users. This is the most efficient method of ...
Tom J Nowell's user avatar
  • 60k
0 votes

Shortcode from a widget is wrapped in unwanted <p> element

I first used the solution of @Trevor, but had some problems with it when the shortcode is inside a link. Thus, I came up with an alternate solution, that checks with regular expression whether the ...
KittMedia's user avatar
  • 231

Top 50 recent answers are included