wp_reset_postdata() or wp_reset_query() after a custom loop?
Reading some stuff about query_reset_postdata and query_reset_query makes me confused. For example:
Reading some stuff about query_reset_postdata and query_reset_query makes me confused. For example:
I am trying to build custom user profile with the guidance of this tutorial: How to make a WordPress profile page
I am using an attachment.php file to show large versions of images that have been clicked on elsewhere. I’d like to pull the image alt text as a caption under the image with javascript, but the alt text isn’t included when when wp_get_attachment_image_src() is used. I don’t think WP has a function to retrieve it, so I need my own. To write that function I need to know…Where is the alt text for an image stored?
I’ve got custom template that I want to display paged blog posts. This is the beginning of my file:
Basic idea is for any post on the site, I’d like users to be able to assign a category for it by selecting from a set of checkboxes on the frontend. This would be a kind of crowd-sourced categorization of content.
I have two authors pages, one displays about 5 posts. Then I’m trying to setup another page that will be all of their posts. I have created a template called moreauthorposts.php and I’m trying to pass the author variable to this page. Problem is if i pass domain.com/more-author-posts?author=johndoe it gets stripped out. How can I retrieve this value? Is this even possible in wordpress? I know WP Rewrite is jacking my URL structure somehow I’m just not sure.
I am starting a bit with the REST API. If I am not completly mislead, the init action hook is also executed when its a REST API request. Now, I want to execute some code only, when it is not a REST API request.
I’ve got a project where I need to build a store locator for a client.
I successfully added a TinyMCE stylesheet using add_editor_style() so that I can preview the styles in the body of the TinyMCE editor.
I am building an add-on to an events module that checks for availability, since there wasn’t a function for that in that module. Now that I have built the logic, there are three emails I will need to send: