Community Forums › Forums › Archived Forums › Design Tips and Tricks › how to redirect (with Genesis Authority Pro theme) images not attached to posts
Tagged: authority pro, Unattached images
- This topic has 10 replies, 3 voices, and was last updated 6 years, 1 month ago by strianobiancheria.
-
AuthorPosts
-
March 8, 2018 at 1:42 am #217480strianobiancheriaParticipant
Hello,
https://www.alfonsostriano.it
I use Yoast to redirect the images attached to the posts of my blog to the post father.
The problem is: how to redirect (with Genesis Authority Pro theme) images not attached to posts that have been indexed?
Thanks for everythingMarch 8, 2018 at 1:54 am #217481Brad DaltonParticipantMarch 8, 2018 at 2:51 am #217482strianobiancheriaParticipantThanks for the quick response.
Unattached images found in WordPress media
see photos: https://www.dropbox.com/s/rhfmfd7n5tvyefd/immagini%20non%20allegate.png?dl=0March 8, 2018 at 4:03 am #217486Brad DaltonParticipantThis relates to WordPress not Genesis or StudioPress child themes.
March 8, 2018 at 4:14 am #217487strianobiancheriaParticipantI had read on some post on the Internet that in my case you could create a template attachment.php to solve the problem of images not attached in the WordPress media.
For this reason I thought there was a special template for the theme Studiopress Auhtority pro.
Thanks anyway for the answer.March 8, 2018 at 4:17 am #217488Brad DaltonParticipantYes, you could do that however this is not included in the Authority Pro theme and would need to be hand coded for genesis.
March 8, 2018 at 5:08 am #217490strianobiancheriaParticipantCould you recommend some specific Genesis tutorials to create this template?
March 8, 2018 at 7:21 am #217493Andrea RennickMemberYou do not need a specific template for this.
The WordPress template hierarchy will use the regular index.php page to show images that are specified to be linked to a page for display.
I had read on some post on the Internet that in my case you could create a template attachment.php to solve the problem of images not attached in the WordPress media.
That's not what attachment.php is for.
Images not attached to a post does not mean they haven't been inserted into a post or not used on your site.
Attachment status is made when you are editing a post or page and upload images while on that page.
if you upload images from the Media screen (not while editing a post) then those images are "unattached".
**forum signature**
If you need technical support for your theme please file a ticket.The forums are community based. Staff only monitors the forum for issues relating to the forum itself and to redirect users to where they need to go.
March 8, 2018 at 7:21 am #217494Brad DaltonParticipantMarch 8, 2018 at 7:22 am #217496Andrea RennickMemberhttps://developer.wordpress.org/themes/template-files-section/attachment-template-files/
**forum signature**
If you need technical support for your theme please file a ticket.The forums are community based. Staff only monitors the forum for issues relating to the forum itself and to redirect users to where they need to go.
March 8, 2018 at 1:46 pm #217507strianobiancheriaParticipantThanks Andrea,
Thanks braddalton,
for the reply.
Is there a way to redirect images "unattached" directly to my homepage?
Is there a code that I can use in the functions.php file of my theme?
Thanks for everything.
Best Regards -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.