The Stack Overflow podcast is back! Listen to an interview with our new CEO.
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 26350

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.

6
votes
The Reply links I assume your Reply links look like this: <a class="comment-reply-link" href="/2013/12/29/hello-world/?replytocom=32#respond" onclick="return addComment.moveForm('comment-32', '32' …
answered Dec 29 '13 by birgire
1
vote
As suggested in the comments, these kind of modifications would be better served with a custom plugin, as they are not theme dependent. Here's an example: <?php /** * Plugin Name: Remove Footer Text …
answered Jun 16 '16 by birgire
0
votes
The main issue with the code snippet is this line: function randomComment_handler($post_id) { Check out the Codex on add_shortcode() and see if you can find the error. Spoiler: It should be like t …
answered Jan 30 '14 by birgire
0
votes
I wonder if this would work: [tabs tab1="Tab 1" tab2="Tab 2" tab3="Tab 3"] [tab id="1"]Content for tab one goes here.[/tab] [tab id="2"]]Content for tab two goes here.[/tab] [tab id="3"]] …
answered May 25 '14 by birgire
0
votes
If you have defined a shortcode like this: add_shortcode('myshortcode','pa_insertPage'); then you could try this inside your naada_assess() function: $recClasses = do_shortcode('[myshortcode page …
answered Mar 28 '13 by birgire
1
vote
The $multipage is constructed inside the setup_postdata() method of WP_Query. It's called when you run the_post(). So just as @s_ha_dum explained, you have to make a loop around it: You can try this: …
answered Apr 30 '15 by birgire
10
votes
In your code example you have: wp_schedule_event( time(), 'hourly', 'symbiocards_hourly_event'); but there is no symbiocards_hourly_event hook defined. If you are using it in the functions.php fi …
answered May 20 '13 by birgire
4
votes
Looking at the WP_Style class, we find the style_loader_tag filter, that might be useful. Try for example: add_filter( 'style_loader_tag', function( $link, $handle ) { if( 'google-fonts' === $ha …
answered Jan 26 '15 by birgire
0
votes
I wonder if you mean this kind of a loop wrapper: wpse_257857_loop( $args = [ 'post_type' => 'page', 'posts_per_page' => 2 ], $before = 'template-parts/wpse-before', $loop …
answered Feb 25 '17 by birgire
2
votes
I would consider making it more flexible by marking the pages in question with post meta or custom taxonomy. That way you don't need to change a PHP code to choose what pages should have some custom l …
answered Aug 8 '17 by birgire
2
votes
You can try to add this line to your code example for the admin_menu filter: remove_meta_box('awd_fcbk_awd_mini_form_metabox', 'post', 'side'); where awd_fcbk is the plugin slug. Edit: This is th …
answered Mar 25 '13 by birgire
1
vote
If you dump the code into functions.php, then the custom taxonomy hasn't been registered, because it isn't recommend to register custom taxonomies earlier than the init hook. Running the code within …
answered Sep 20 '16 by birgire
1
vote
() and get_stylesheet_directory_uri() are commonly used core functions, where the latter is child-theme aware. New functions in WordPress 4.7 There will be new functions introduced to e.g. make it … corresponding functions for the path instead of url: get_file_directory_path() and get_parent_file_directory_path(). We should also note that it doesn't matter if $file starts with a forward slash / or not …
answered Nov 10 '16 by birgire
1
vote
This should work: $query->set( 'date_query', array( 'relation' => 'OR', array( 'column' => 'post_date', 'after' => '-7 days' ), array( 'column' => 'post …
answered Feb 26 '17 by birgire
3
votes
We can also modify the anchor CSS class with the wp_generate_tag_cloud_data filter (4.3+). With that filter we can modify the following anchor data: id url role name title (removed in 4.8) slug rea …
answered Jun 5 '17 by birgire

15 30 50 per page