1
vote
Accepted
Automatically add images to a menu
I guess you need this function
get_the_post_thumbnail_url($menu->object_id);
(provided menu item is not a custom link)
$menu->ID is not the id of the post/page it is linking to.
About calling ...
1
vote
The next_posts_link() works only with original $wp_query
I ran into the same issue. I have nested loops, so in the inner loop I am using $wp_query = new WP_Query($args); instead of the global WP_Query. The solution I used was to explicitely pass ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
pages × 2490posts × 396
page-template × 178
customization × 163
menus × 155
php × 149
templates × 147
plugins × 135
categories × 133
custom-post-types × 129
permalinks × 129
loop × 101
child-pages × 88
theme-development × 87
functions × 85
wp-query × 79
admin × 67
themes × 66
urls × 62
wp-admin × 57
pagination × 56
homepage × 54
content × 52
custom-field × 49
plugin-development × 48