Automating Galleries into Posts
-
I’m looking to automate my galleries into posts. Basically how I am hoping to accomplish this is by having the same name for both the gallery title and the post. The code i would place into the page/post template would seek out any photo galleries that also have the same name as the post title. Once it finds it it would copy the post ID and then paste it into the short code within the code to automate putting galleries into posts.
This is beyond my skill set but I think it should be possible and I was hoping someone else with more experience could help me put the pieces together. The gallery plugin i’m using is FIAgallery.
I need a script that pulls the gallery ID and saves that ID number to post in the executing echo line below – which I’m positive isn’t going to do what I want but I’m putting it here for a visual representation.
<?php echo do_shortcode('[flagallery gid='.get_gallery_meta($post->ID) .get_the_title();']'); ?>
The topic ‘Automating Galleries into Posts’ is closed to new replies.