Search Results
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 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
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 |
The core of the WordPress query, the loop offers an easy way to access post information and display it on your website.
2
votes
Accepted
Get author Meta for particular user inside the loop
The function get_the_author_meta('ID') will return the ID of the author for the current post.
That means this line should work.
get_avatar( get_the_author_meta( 'ID' ), 120);
This will not work
g …
0
votes
2
answers
161
views
get_permalink() of page the enclosing page not posts
Within the loop of the posts, I need to get the permalink of the main page. … The latest I have tried is getting the ID of the page outside of the loop and setting it to a variable then calling it later on in the loop. …