Featured Content Gallery | WordPress Plugin | iePlexus

Image Caption showing in text

General WordPress and FCG plugin discussion

Image Caption showing in text

PostBy Pac10Rivalry.com on Thu Mar 26, 2009 11:17 am

Greetings: I've used the Search here on the forum and have spent some time manually searching for any ideas/solutions, but I've not found one. So.....

The Image Caption text is being displayed in the text.

Example:
[caption id="" align="alignright" width="234" caption="photo via xxxxx.com"][/caption]

Does anyone know of a way for this to NOT show as part of the text? I realize I can remove the [caption] altogether, but I rather like having the shadow box with text about the image in my posts. I just don't want the Caption text to show up in my FCG.

I hope this makes sense. If not, have a look at my front page and you'll clearly see what I am talking about. (www.Pac10Rivalry.com).

Also, as a second item - Isn't there a way to use max-height for the images so there isn't a need to crop images to fit the FCG? Just a thought and hoped someone may have an idea already. If not, it's next on my list to research.

Thank you in advance!!
Pac10Rivalry.com
 
Posts: 2
Joined: Thu Mar 26, 2009 10:25 am

Re: Image Caption showing in text

Thank you for using the Featured Content Gallery Forum
 

Re: Image Caption showing in text

PostBy admin on Thu Mar 26, 2009 12:41 pm

You can use featuredtext custom field to have custom description of your post instead of fcg grabbing top of your post with caption.

No, there is no max-height for images, but you do not need to crop every image to be gallery size, if your image size is bigger than gallery size, just middle of the image will be shown. But of cours,huge images will require more time to load.
Yelena Khamidullina
Web Applications Developer, iePlexus

1. Check settings to exclude fcg-YOU conflict
2. Try to turn off all your plugins at once to exclude fcg-other plugin conflict
3. Try default theme to exclude fcg-theme conflict
4. Post in this forum to involve me in your troubleshooting. URL is required
User avatar
admin
Site Admin
 
Posts: 4789
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA

Re: Image Caption showing in text

PostBy Pac10Rivalry.com on Thu Mar 26, 2009 12:51 pm

Hi. Thank you for the reply.

Yes, I see the image does get centered, but for some images that chops the top off (and in some cases it chops of the heads of people in the image). If my box is 300 px high and my image is350px it chops the top and bottom off.

Using the featuredtext function means adding one more step to the process. I realize this is just one more step, but each step adds up when posting several articles. Especially when there is a way to automate processes more. :-)

I'll see if I cannot come up with a solution for each.

Thank you
Pac10Rivalry.com
 
Posts: 2
Joined: Thu Mar 26, 2009 10:25 am

Re: Image Caption showing in text

PostBy admin on Thu Mar 26, 2009 1:54 pm

anyway you need to specify articleimg field to each post you use in gallery, so adding featuredtext field is not a big deal
Yelena Khamidullina
Web Applications Developer, iePlexus

1. Check settings to exclude fcg-YOU conflict
2. Try to turn off all your plugins at once to exclude fcg-other plugin conflict
3. Try default theme to exclude fcg-theme conflict
4. Post in this forum to involve me in your troubleshooting. URL is required
User avatar
admin
Site Admin
 
Posts: 4789
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA

Hide Image Caption In Featured Content Gallery

PostBy ClickPimpsta on Tue Jun 09, 2009 2:29 pm

Hi... I don't know if you've already found a solution, but I tried this and it work for my site...

I added the following lines in my /wp-includes/feed.php file and it worked for me:
Code: Select all
$content = preg_replace("/\[caption.*\[\/caption\]/", '', $content); /* string itself */
if ( $cut && !$encode_html ) /* next line, for navigation too */


Look for these lines and paste the code above below them:
Code: Select all
function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file='', $cut = 0, $encode_html = 0) {
   $content = get_the_content($more_link_text, $stripteaser, $more_file);
   $content = apply_filters('the_content_rss', $content);


I got the tip from here: http://wordpress.org/extend/ideas/topic.php?id=2000
ClickPimpsta
 
Posts: 1
Joined: Tue Jun 09, 2009 2:16 pm


Return to General Discussion

Who is online

Users browsing this forum: dolariru, extermely, naververske, sungconcaro and 2 guests