You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How would I construct the shortcode so it displays the photo credit table for all photos attached to the current post? currently, i'm implementing the shortcode in a sidebar on all blog pages.
About to push up a commit. A few notes - if the image isn't attached to anything, it won't show, so make sure it's actually attached to the post you expect.
Wherever the shortcode is included (widget or in the post_content), the post ID is used, so if it's in the sidebar, it will be relative to the page being viewed.
This brought to light an issue where if the image doesn't have any credit tracker meta saved, it doesn't show in the table at all, but the table could still show the headers. This is because the table only checks if the image exists, but not if the meta exists for the image. This could be another ticket as it's not directly related to this fix.
How would I construct the shortcode so it displays the photo credit table for all photos attached to the current post? currently, i'm implementing the shortcode in a sidebar on all blog pages.
Source: https://wordpress.org/support/topic/photo-caption-table-for-attachments-to-current-post
The text was updated successfully, but these errors were encountered: