Loading and Referencing Images

I’m slowly writing a page to manage an asset database; effectively, writing a very basic plugin. I want to import photos and found some excellent examples of how to do this and, made it work! My problem then was to display the images in the page. Although I know the uploaded image filename, there seems to be no way to use it. The image will be put into the current ‘date’ folder and could well be renamed on the way. I’ve ended up querying the last post ID just before I import the image and adding 1 to it to reference the image. With the post ID I can then use wp_get_attachment_image_src to get a url for the (resized) image:

How to output custom post type title on custom page with category next to it?

I have a website for an organisation, and I created a new page for the leadership team. I ran a query, looking for the “member”-type that have the category of “Leadership”. So far, when I output this on the page, it works fine. I also have child categories of “President” and “Secretary” that I want to display beside each leader’s name. However, as soon as I call get_the_category(), everything gets messed up, and only one result is output, and the President category somehow disappears and the post with the category of “President” gets “Secretary” displayed next to it.
This is the relevant code:

WooCommerce: Force coupon for existing/registered customers

I have some specific regular customers for which I have particular coupons, like 10%, 15% etc. I want the coupon codes to be fixed in their useraccounts so that they do NOT need to enter it during ordering-process. Is it possible? Thanks! Answers: Thank you for visiting the Q&A section on Magenaut. Please note that … Read more