undeterminederror
BANNED
- Mar 31, 2008
- 630
- 462
Hi. I use Wordpress as a gallery for pictures ( just because google likes wordpress more than any gallery CMS ). All my posts look like that:
The function
is the permalink and i use that to read the names of the pics from the folder "pics". The post with the title "My big black dog" will find the picture my-big-black-dog.jpg in the directory and post it. So all I do is to match the names of the pics with the titles.
Now the question is:
How can I read the entire list of the pics in the directory, after i upload them, then create the posts automatic without writing all the titles every post?
Just for example, I found a plugin here:
It just creates a list of files in a directory.
But I need to create posts with that kinda list...
The list could be wrapped in a rss or mysql for wordpress.
This was just for example.
Sorry for my English. I hope i was clear. Did i?
HTML:
<img src="http://wordpressblog.com/pics/<?php echo sanitize_title($post->post_title) ?>.jpg" alt="<?php the_title(); ?>" />
HTML:
<?php echo sanitize_title($post->post_title) ?>
Now the question is:
How can I read the entire list of the pics in the directory, after i upload them, then create the posts automatic without writing all the titles every post?
Just for example, I found a plugin here:
HTML:
http://helvensteijn.com/wordpress/wp-list-files
But I need to create posts with that kinda list...
The list could be wrapped in a rss or mysql for wordpress.
This was just for example.
Sorry for my English. I hope i was clear. Did i?