Haris Zulfiqar
Forum Replies Created
-
Forum: Plugins
In reply to: [W3 Total Cache] IE8/IE9 stylesheet rules limitationHi, any ideas?
Hi Cais,
I have submitted a bug report through the form that you linked to. Looking forward to get an update from your developers and in the meanwhile, I’ll go ahead and do some other pending work.
Thanks for your help!
Hi Cais,
I am the developer of Avada theme and yes this is about theme. I do know there are compatibility issues but this is one it where the theme is not to be blamed but the issue can also be replicated on default theme where the_content filter is used.
I’ll file a bug report.
Actual shortcode: https://gist.github.com/mharis/f0bc4b86993e996b27d4
Then for the page content to test, you can use the following content:
[recent_posts layout="default" columns="1" number_posts="4" cat_slug="" exclude_cats="" thumbnail="yes" title="yes" meta="yes" excerpt="yes" excerpt_words="35" strip_html="yes" animation_type="0" animation_direction="down" animation_speed="0.1"][/recent_posts] <img class="ngg_displayed_gallery mceItem" style="line-height: 1.5em;" alt="" src="https://avadatest.theme-fusion.com/nextgen-attach_to_post/preview/id--4687" /> [ngg_images gallery_ids="1" exclusions="" display_type="photocrati-nextgen_basic_thumbnails" thumbnail_width="120" thumbnail_height="90"]
For the gist code, the apply_filters is implemented under tf_content function.
Thanks for double checking and all the help.
Please, can you take a look at PHP error log as to why an internal server error shows up? I am not sure why it happens on your test sites as I am unable to replicate the same error locally.
Shortcode Gist: https://gist.github.com/mharis/140961b7e7e6171cba71
Content to test within the a wordpress page (not page template): https://gist.github.com/mharis/6c5c4d20a46a0ddd6ff2Did you check your PHP error log to find out the issue? It might be a simple missing semi-colon or a copy/paste error at your own end which is causing 500 internal server error.
This is actually not a problem directly related to the theme I am using but also happens on Twenty Twelve.
This will happen for any shortcode that has the the_content applied to the content.
Try adding the following shortcode in your theme:
add_shortcode('shortcode', 'shortcode'); function shortcode($atts, $content = null) { $posts = new WP_Query('showposts=10'); while($posts->have_posts()): $posts->the_post(); $content = get_the_content(); $content = apply_filters('the_content', $content); var_dump($content); endwhile; }
And then create a new page with the following content:
[shortcode][/shortcode] <img class="ngg_displayed_gallery mceItem" alt="" src="https://avadatest.theme-fusion.com/nextgen-attach_to_post/preview/id--4687" /> [ngg_images gallery_ids="1" exclusions="" display_type="photocrati-nextgen_basic_thumbnails" thumbnail_width="120" thumbnail_height="90"]
Forum: Themes and Templates
In reply to: Hook for theme activationThanks for the awesome suggestion, Viper. ??
Forum: Themes and Templates
In reply to: Make WordPress Not Look like a BlogYou can remove headlines, dates, tags, categories from the index template of your theme (usually index.php) ??
Forum: Themes and Templates
In reply to: innerHTMLThe “read more” button loads the full article and comments through javascript (AJAX) ?
Forum: Themes and Templates
In reply to: Help with stylesheet on info part of post.post .otherlinks { margin-top: 5px; border-bottom:1px solid #CCC; overflow: hidden; }
Do you want categories on the left and tags on the right?
Forum: Plugins
In reply to: WordPress bloginfo() function.Call to undefined function get_option()
:S
Forum: Plugins
In reply to: Warning: Missing argument 1 for get_category_link()Bump. ??