[Big panic!] Gallery (NextGen or Std) not visible on first/landing page


  Page 1 of 2 Next Last 
Author Message
RobRAR

Posted: 8/10/2011
Quote message 

Hi,

I recently posted about a line-break issue, which is most definitely an 'it would be nice'...

In comparison, this one's a bit of a panic-stricken deal-breaker...

The site I'm building is to showcase photography (with some writing), and it's built around NextGen gallery.

At the moment if I use the shortcode in a post to present a gallery, it doesn't display on the front/landing page of my site - it appears perfectly if I click a post heading to view the single post.

...This is a pretty big issue, as at the moment, I can't get any photography onto the front page of my phtography site.

I've searched the forum, and it seems I'm not the first to come across this behaviour - but none of the threads have advice on how to resolve.

Please help!

Thanks and regards,

Rob.

 
Wortcode

Posted: 8/10/2011
Quote message 

Are you using a widget or a short code to display this?
 
RobRAR

Posted: 8/10/2011
Quote message 

I'm using a short code in post(s).

I'm taking photos at events, so will write a brief blog post for each, and use the shotcode inside the post with a gallery of the corresponding images.

Regards,

Rob.

PS>

Just to illustrate exactly what I'm talking about:

This is a screengrab showing a post on the homepage (showing most recent posts):



...If I click the title of the post (as shown in the screengrab above), and view as a single post:



 
RobRAR

Posted: 8/10/2011
Quote message 

(Also, in case it's helpful to know - if I switch to Twenty Ten / Twenty Eleven, or various other 'off the peg' templates, galleries display in homepage posts exactly as in the single post example above)

Thanks and regards,

Rob.

 
webguygary

Posted: 8/10/2011
Quote message 

in WP admin:

appearance > theme uptions > uncheck "apply excerpt tag filters"
 
RobRAR

Posted: 8/10/2011
Quote message 

Hi,

Thanks for your reply.

I went to the options page, and found it was already disabled. I tried enabling and disabling again, but the only change was that while enabled, the twitter and facebook icons from jetpack disappeared.

Thanks and regards,

Rob.

 
Rich Friedel

Posted: 8/11/2011
Quote message 

I am having the same issue where the images do not show in a post on the front page.

I am not using any gallery, however this happens for me when including a caption for the image.

Does anyone know of a solution for this?
 
Christina

Posted: 8/11/2011
Quote message 

I am also having this issue and questioned it in another post. In my case, my images disappear from the front page ONLY after I edit the post. If I never go back and update the post, the images will stay. However, if I update the post, the images disappear. I'd really love some help on this, too!
 
Clippy

Posted: 8/11/2011
Quote message 

Well, an immediate solution would be to comment out the strip_shortcodes function in the theme_get_excerpt function.

In functions.php, find
if (!function_exists('theme_get_excerpt')){


Below it, change
$excerpt = strip_shortcodes($excerpt);


to
// $excerpt = strip_shortcodes($excerpt);


This leaves some empty paragraph tags between gallery rows, similar to an issue that occurred in an earlier version of Artisteer 3 (which had since been fixed - until now).

Still, it works, just with a little extra whitespace.

I'll see if I can find another way to fix this, and I'll report whatever I find/have found to support.
 
air2terre

Posted: 8/11/2011
Quote message 

Hello, I'm using Artisteer and I have the same problem. When I use shortcodes with pictures or words (link to Wikipedia) or when I add only pictures, they disappear on the front page but not on the single post.
When I use another theme which not generated with Artisteer, it works. I'm desappointed.
I thinked it was a limitation of the demo, but you've the same problems. I wait the solution before buying the standard edition... :-/
 
Clippy

Posted: 8/11/2011
Quote message 

Quote Christina:

I am also having this issue and questioned it in another post. In my case, my images disappear from the front page ONLY after I edit the post. If I never go back and update the post, the images will stay. However, if I update the post, the images disappear. I'd really love some help on this, too!

This actually sounds like a different issue... When you go back to the post, are your pictures missing from the WordPress editor (TinyMCE)?
 
RobRAR

Posted: 8/11/2011
Quote message 

Hi Clippy,

Thanks for your input. I've commented-out the strip_shortcodes function as you suggest; but when I do, the shortcode isn't stripped, but it's not parsed either; in so much as instead of getting a strip of image thumbnails in the rendered-page, I just get the shortcode text (echoed (if you will)) in the page.

I'm assuming (I realise assumption is dangerous) that these functions are related-to, or solely-for, generating 'auto excerpts' for the front page. It seems odd to me that commenting-out parts of this code would have any effect at all when 'Use auto excerpts' is un-checked in the theme options?

I dunno... Anyway, thanks again for your help!

Rob.

PS> Just for the record, I've also contacted Support about this issue; so it's perhaps worth mentioning other basic tests we've run through:

I was using Artisteer 3.0.0.41778 (latest stable), I've tested this with the 'default generated' two-column theme, and my own three column theme. I've also switched to Artisteer 3.1.0.42580 (latest beta) and behaviour is the same. It's also the same with the sample templates from the website.

Additionally, I've tried with all my WordPress plug-ins (apart from NextGEN) disabled; again there was no change. (although I did discover that I need to find a new 'hide pages' plug-in - if anyone knows of one which is compatible - I'd be grateful of a tip!).

(Thanks again!)
 
Clippy

Posted: 8/11/2011
Quote message 

Weird, commenting out $excerpt = strip_shortcodes($excerpt); is totally working here with NGG...

Uhhh, maybe I did something else and forgot? BRB...
 
Clippy

Posted: 8/11/2011
Quote message 

Weird. No idea why this isn't working on your end.

By the way, if you don't necessarily *need* post excerpts, you can always change

'content' => theme_get_excerpt(),
to
'content' => theme_get_content(),

in content.php. It'll display the posts on your front page the same way as it does on single posts.

Still, not a true fix.
 
Clippy

Posted: 8/11/2011
Quote message 

Oh.

Place this in functions.php
add_filter( 'theme_get_excerpt', 'do_shortcode');

in tandem with commenting out the strip_shortcodes function.
 
Christina

Posted: 8/11/2011
Quote message 

Quote Clippy:


This actually sounds like a different issue... When you go back to the post, are your pictures missing from the WordPress editor (TinyMCE)?


No, they are there. And the images show up fine on a single post page - just not on the index page.

If I look at my index page right now, it's happened on two posts (Thankful Thursday and Wordless Wednesday at the top). All other posts are showing the images correctly. Also, the top Thankful Thurs post has one image that shows fine, but is missing 2. When I edited that post, I added the third image that is still showing on the index page. So bizarre.

http://spilledmilkshake.com - sorry, I'm sure it's pretty girly for you guys!

Thank you for the help! I'm getting ready to try and edit the shortcodes as suggested!
 
Christina

Posted: 8/11/2011
Quote message 

[caption id="attachment_675" align="aligncenter" width="300" caption="Singing Happy Birthday"]Genius birthday[/caption]

Edited shortcodes as advised and now the images that were mission have the above wrapped around them. ??
 
Clippy

Posted: 8/11/2011
Quote message 

Okay, here we go... Forget all the other stuff. This makes post excerpts display widgets with seemingly no problems (including zero superfluous paragraph tags):

In functions.php, find
if (!function_exists('theme_get_excerpt')){


Below it, change
$excerpt = strip_shortcodes($excerpt);

to
// $excerpt = strip_shortcodes($excerpt);


And, somewhere in functions.php (I always add it to an include, but you can stick it wherever), add
add_filter( 'the_excerpt', 'do_shortcode');

 
Clippy

Posted: 8/11/2011
Quote message 

@Christina

Just checked it out - the newest fix should solve your problem.
 
Christina

Posted: 8/11/2011
Quote message 

Clippy -

I really don't know anything about php, so when you say to "stick it wherever", I hope you mean it, because I just stuck it right after the other edits I did.

If I go back and edit the images, they will show up correctly. Otherwise, they show up with the caption information wrapped around them.

Basically what I'm saying is this - the changes you suggested got the images back on the index page, but for some reason the images that were missing now have all the details wrapped around them.

At least I know I can go back and remove the pictures and reupload them and remove all that caption information.

I truly appreciate all your help!
 
Clippy

Posted: 8/11/2011
Quote message 

Quote Christina:

I really don't know anything about php, so when you say to "stick it wherever", I hope you mean it, because I just stuck it right after the other edits I did.

Ahhhhh, okay, "wherever" doesn't really mean wherever, and that's what the problem is...

Take it out of where you placed it within the function, and paste it at the very bottom of functions.php, on a new line.

Now your captions will work!
 
Christina

Posted: 8/11/2011
Quote message 

Clippy - you are the BEST! Awesome!

I guess I should have been up front about the need to draw me a picture using crayons lol!

All better now :)

Now, do you know anything about my problem in IE??? http://www.artisteer.com/Default.aspx?post_id=171943&p=forum_post&forum_id=13

Thanks again!
 
air2terre

Posted: 8/11/2011
Quote message 

Thanks to Webguygary and Clippy ! It works !!! :-D
 
webguygary

Posted: 8/11/2011
Quote message 

btw, I no longer use plugins like Next Gen for simple photo galleries because WP has it built-in, and Artisteer supports it.
BUT, I DO use Lightbox 2 plugin - works great w/ core WP gallery
 
RobRAR

Posted: 8/11/2011
Quote message 

Clippy, webguygary; thank you both very much for your input.

With Clippy's revised work-around; behaviour is exactly as desired/expected; and the gallery displays just as it would in a single-post view.

Listen, in all seriousness, if you ever find yourself on hard times in the vicinity of Preston, Lancashire - you've got a friend in me. I'm immensely grateful; I can now press-on toward putting my site online.

Is it reasonable to be thinking that essentially what is happening is that even with auto-excerpts disabled, the theme is processing-out tags (inc. shortcodes) for media/bulky post elements on the index page; and what Clippy has figured out is a way of 'hard' bypassing this 'excerpt pruning', and then adding the filter to parse 'do_shortcode' elements, which is also absent even when we don't wish smaller 'excerpts' on the homepage?

Also webguygary - on the issue of using NextGEN - I'm drawn to it mainly because of its flexibility in managing multiple galleries with many images in each, while retaining the ability to dynamically generate galleries of selections from one or more of these.
Its tag support is also brilliant for me, although unfortunately not out of the box - at that point it only uses image tags for 'related images' and a tag-cloud (which would be great, but can't be used in a sidebar). I managed to learn enough about WordPress/NextGEN tags to write some very ugly PHP which gives me dynamic tag-navigation in my sidebar, so users can quickly and accurately locate images. Perhaps I'll drop a little mention on here when it's all online in case you're curious :)

Sincerely, thanks again for all your efforts, and warmest regards,

Rob.

 
Ute

Posted: 10/7/2011
Quote message 

@Clippy: you made my day... thanks a million! :-)
 
Dj-SOFS

Posted: 10/19/2011
Quote message 

:-) :-D 8-) O:)

Hello Clippy, you the best... :-)

Hey Artisteer Team, you guys are doing a really good job, just a suggestion for new versions, can we get more options in Buttons and Auto Fit for Picutes (like header, background etc...) , and more Theme Options ? so we dont have to come back to the main software just to make some little changes to the theme...

Thank you

Dj-SOFS

[IMG]http://i5.photobucket.com/albums/y174/djsofs/Kings%20Of%20Beats/Kingsofbeatslogo2-1-1.png[/IMG]
 
Britt

Posted: 10/26/2011
Quote message 

I'm having the same issues and the code I altered in the functions.php file is making my website blank.

My issue works perfect with the default theme of Twenty Eleven 1.2.

Artisteer Ver: 3.1.0.42580 SE - WP:3.2.1

My content is working fine on the .htm files (permalinks) while still showing the https. Any ideas on why or how my 2 plugins are not working on the home page and the tag links?

Im using the Custom Contact Forms and the Pro Version of MapPress.

These plugs do use the shortcodes: Example:

[mappress mapid="3"] and [customcontact form=1]

 
Britt

Posted: 10/26/2011
Quote message 

WOW! the code from above in the content.php file works!!!

'content' => theme_get_content(),

I love you guys, been up all night trying to figure this out. Now I can get to the real grind of it all!!

O:)
 
Tony

Posted: 10/26/2011
Quote message 

Also having the same problem here. Haven't tried the fix yet, but assume it will work.

However, it is a pain to have to edit PHP every time the theme is tweaked - any likelihood of this being fixed?
 
  Page 1 of 2 Next Last