Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options answers only user 34172

A function is a sequence of program instructions that perform a specific task. It is packaged as a unit that can be used wherever the according task should be performed.

0
votes
Notice in your code is caused by undefined variable. But there are some more things that could be done a little bit nicer... function change_wp_title( $title ) { global $post, $paged; if ( i …
answered May 14 '18 by Krzysiek Dróżdż
0
votes
Here it is: if ( get_post_type $id ) == 'tools-in-2019' { Basically what your doing in this line makes no sense at all - you try to compare if conditions with some string... And you try to call a f …
answered Feb 11 by Krzysiek Dróżdż
1
vote
I don't think there is one. Escaping is harder than unescaping (you have decide what exactly to escape and where). Just use PHP html_entity_decode function.
answered Jul 12 '13 by Krzysiek Dróżdż
1
vote
() || is_front_page() ) { remove_action('wp_footer', 'append_code_to_body'); } } add_action('wp', 'disable_flradv'); PS. You also have to be careful, if you want to use is_home (and so on) functions. You shouldn't use them before wp_query object is initialized. …
answered Jul 2 '13 by Krzysiek Dróżdż
4
votes
Functions and includes (itself) don't affect the site performance much. But... The code inside a function can affect site speed. It all depends what exactly that function does. For example function … esc_attr won't affect site speed, because its code is simple and will run fast. On the other hand, functions like get_posts can take a lot of time to execute, because it has to parse your arguments …
answered Jan 4 by Krzysiek Dróżdż
2
votes
Problem lies in this line: $filename = $acak._.$file; It should be $filename = $acak.'_'.$file;
answered Mar 6 by Krzysiek Dróżdż
1
vote
If you had checked the JS console, then you would see this error: Uncaught SyntaxError: Identifier 'scrollToTop' has already been declared at :1:1 And that's the reason, why your code works on …
answered Jan 3 by Krzysiek Dróżdż
1
vote
break this way... Always use WP functions, if they exists (what if some plugin logs every deleted user, or what if some other action is needed, etc.) You can use get_user_by to achieve that. Here's the …
answered Jul 31 '18 by Krzysiek Dróżdż
3
votes
You're trying to call this custom function without any parameters: lb_acf_profile_avatar() But it's not meant to work like that. It's not a function that you should call. It's a filter callback and …
answered Mar 28 by Krzysiek Dróżdż
0
votes
There is nothing wrong with wp_redirect part of your code... But... is_page function can’t be used with URL address... You should pass “Page ID, title, slug, or array of such” as stated in documentat …
answered Jan 3 by Krzysiek Dróżdż
2
votes
Using titles in such comparisons is always a little bit risky - you have to deal with encodings and so on. Much safer way is using of slugs in code, because they are url-safe. So your code could loo …
answered Jan 6 by Krzysiek Dróżdż
2
votes
It's pretty easy then... And it works exactly how it should... You register menu 'footer ' - there's a space at the end (so you have two locations defined 'primary' and 'footer '). And then you use …
answered Jul 10 '18 by Krzysiek Dróżdż
5
votes
You should never post anything to plugins files directly. It's almost always a security flaw and it prevents site owner from hardening the site properly (in perfect situation no requests to PHP files …
answered Nov 18 '18 by Krzysiek Dróżdż
1
vote
for the 'callback' type are valid. Default: None $priority (int) (optional) Used to specify the order in which the functions associated with a particular action are executed. Lower … numbers correspond with earlier execution, and functions with the same priority are executed in the order in which they were added to the action. Default: 10 $accepted_args (int) (optional …
answered Dec 5 '13 by Krzysiek Dróżdż
2
votes
I guess count_user_posts is what you're looking for ;) This is how you use it: $user_post_count = count_user_posts( $userid , $post_type ); And it returns the number of published posts the user ha …
answered Nov 28 '18 by Krzysiek Dróżdż

15 30 50 per page