Forum Replies Created
-
AuthorPosts
-
patrickrMember
Thanks, Brad!
patrickrMemberA post is moved from one category to another.
February 5, 2017 at 11:19 pm in reply to: How to get the permalink for the latest post in the Featured Posts Category #200618patrickrMemberDisregard. I've figured it out.
patrickrMemberAlmost. The link that's generated for "show category archive link" is for the Featured Posts category. I want the archive link for the latest post in the Featured Posts category.
Something like:
$wpdb->get_var( "SELECT ID FROM $wpdb->posts WHERE post_title = '" . $posttitle . "'" );
$getpost= get_post($postid);
Where instead of searching by
post title
, I'm searching for the latest post in the Featured Posts category.Thanks.
patrickrMemberI'm developing locally, so I can't link to it.
I'm using the Genesis Sample theme, and built in "Featured Post" widget. I'd like to know how to generate the archive link for the current "featured post".
Thanks, Brad.
January 25, 2017 at 8:24 am in reply to: How to? Genesis Sample Theme with Ajax Load More Plugin #200001patrickrMemberThanks, Victor!
patrickrMemberThanks for the reply, Victor. I took a look at the link, and I understand I need to create a custom loop, but what I don't understand is what that loop should look like to get the same design as the blog posts on the homepage. The workflow is something like:
Get logged in user's posts -> Pass the posts to the custom loop
I have the logged in user's posts. How do I pass them to the loop in the form of a variable and what does that loop look like?
The latter is probably as straightforward as finding the loop that renders the posts on the homepage, and copy/pasting it into the functions.php file, with a tweak for it to accept the variable containing the posts.
Cheers
January 8, 2017 at 7:25 pm in reply to: Where is the code that renders the home page of the Genesis Sample theme? #199036patrickrMemberThanks Brad, but my question was where is the current code that renders the homepage. I'm not interested in customizing the homepage, I'm just trying to find the loop that renders the posts on the homepage.
Cheers
-
AuthorPosts