ReliableNewsNow
Newbie
- Dec 29, 2010
- 2
- 1
Hi,
I am working on a white hat Wordpress auto-blogging project for the purpose of building a strong news hub catered to a specific industry. To do this I am testing out a prototype using the Gabfire Advanced Newspaper Theme with the WP-O-Matic and Get the Image plugins. Everything has been going well so far, but I have hit 4 snags when it comes to adding thumbnail custom fields for which I am working to find a path to a solution.
Snag 1: The Gabfire Advanced Newspaper Theme utilizes images extensively, but fails to detect images embedded in post content automatically. This requires that a post contain a custom field designated as "thumbnail" in order for the theme to use the image.
Snag 2: WP-O-Matic does not automatically or have an option available for inserting custom fields, but it does store images locally with its cache feature.
Snag 3: Get the Image adds thumbnails from images Cached by WP-O-Matic, but they are of poor quality.
Snag 4: I code primarily in VB and C#. I am new to PHP and barely familiar with the WordPress CMS, so I find myself feeling like a foreigner wandering maze of code like an illegal alien in the desert.
Paths to Solution
Part 1:
I want to add thumbnail custom fields to my posts on insert and I have isolated the function in WP-O-Matic (line 652) that builds the post, but I don't know what file calls that function or the best way to add in the meta data. I've found the location where the $content variable is built (line 575), but have not determined the best place to search the field for an image and build the custom field.
Part 2:
After locating the best place to search for an image in the post content I want to integrate the code from the image scan function used by Get the Image to add a thumbnail to the post if it has an image. The Get the Image code uses a regular expression to detect image html tags. I tried to post the code, but it triggered the moderation system.
I am working on a white hat Wordpress auto-blogging project for the purpose of building a strong news hub catered to a specific industry. To do this I am testing out a prototype using the Gabfire Advanced Newspaper Theme with the WP-O-Matic and Get the Image plugins. Everything has been going well so far, but I have hit 4 snags when it comes to adding thumbnail custom fields for which I am working to find a path to a solution.
Snag 1: The Gabfire Advanced Newspaper Theme utilizes images extensively, but fails to detect images embedded in post content automatically. This requires that a post contain a custom field designated as "thumbnail" in order for the theme to use the image.
Snag 2: WP-O-Matic does not automatically or have an option available for inserting custom fields, but it does store images locally with its cache feature.
Snag 3: Get the Image adds thumbnails from images Cached by WP-O-Matic, but they are of poor quality.
Snag 4: I code primarily in VB and C#. I am new to PHP and barely familiar with the WordPress CMS, so I find myself feeling like a foreigner wandering maze of code like an illegal alien in the desert.
Paths to Solution
Part 1:
I want to add thumbnail custom fields to my posts on insert and I have isolated the function in WP-O-Matic (line 652) that builds the post, but I don't know what file calls that function or the best way to add in the meta data. I've found the location where the $content variable is built (line 575), but have not determined the best place to search the field for an image and build the custom field.
Part 2:
After locating the best place to search for an image in the post content I want to integrate the code from the image scan function used by Get the Image to add a thumbnail to the post if it has an image. The Get the Image code uses a regular expression to detect image html tags. I tried to post the code, but it triggered the moderation system.