Oleg Dudkin
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: PHP Fatal error: Maximum execution time of 30 secondsDoes Google XML sitemap options page show some errors?
Forum: Fixing WordPress
In reply to: PHP Fatal error: Maximum execution time of 30 secondsDo you still have all plugins disabled?
Forum: Themes and Templates
In reply to: Show posts which get by custom page in excerptmaybe you just need to get rid of $wp_query and $new_query at all.
Just use
query_posts($args);
instead of
$new_query = new WP_Query($args);
and remove other references to $new_query from code.Forum: Themes and Templates
In reply to: Show posts which get by custom page in excerptI’m not sure what is wrong with the_content();
possibly it is result of reseting wp_query
maybe you can replace$temp = $wp_query; // assign orginal query to temp variable for later use $wp_query = null; $wp_query = new WP_Query($args);
with
$new_query = new WP_Query($args);
and then
while ($wp_query->have_posts()) : $wp_query->the_post();
with
while ($new_query->have_posts()) : $new_query->the_post();
Forum: Themes and Templates
In reply to: Show posts which get by custom page in excerptyou are welcome ))
to avoid future possible problems with shortcodes you can use
echo apply_filters('the_content', array_shift(explode('<!--more-->', $post->post_content)));
Forum: Themes and Templates
In reply to: Show posts which get by custom page in excerpttry
echo array_shift(explode('<!--more-->', $post->post_content));
instead of the_content();Forum: Themes and Templates
In reply to: Show posts which get by custom page in excerptdoes shortcodes work in post content for this template?
Forum: Themes and Templates
In reply to: Show posts which get by custom page in excerptI can’t see code…
Try next:
Create sample post with 2 short parts divided by –more–.use next code in the loop.
the_content();
the_content(‘blah_blah’);
echo get_the_content();
global $post;
echo $post->post_content;
echo apply_filters(‘the_content’, $post->post_content);And post what it shows.
Forum: Plugins
In reply to: Outputting short code in widgetAbove code should work…
try to use something like this<?php $width = 100; ?> [popup url="https://popupurl.com" width="<?php echo $width; ?>"]LINK TEXT[/popup]
[Please post code snippets between backticks or use the code button.]
Forum: Plugins
In reply to: Contact 7 Form – Popup confirmation noticeIf you are familiar with JavaScript you can write a function to display a message. Then call it on on_sent_ok event. Similar to how redirecting is done for this plugin.
Forum: Themes and Templates
In reply to: Show posts which get by custom page in excerptWhat have you changed in main loop in your template?
Can you post template code here?Forum: Themes and Templates
In reply to: Show posts which get by custom page in excerptDoes it works on homepage the way you expect? I mean formatting in excerpts.
Forum: Themes and Templates
In reply to: Show posts which get by custom page in excerptTry to use the_excerpt() instead.
Forum: Fixing WordPress
In reply to: PHP Fatal error: Maximum execution time of 30 secondsGenerally, linux hostings are better. But it shouldn’t make so much difference.
Also, I think it’s better to switch back to your normal theme and wait untill (if) errors appear. And then switch to default theme to see if it fixes problem.
Forum: Fixing WordPress
In reply to: PHP Fatal error: Maximum execution time of 30 secondsDo you have access to hosting settings?
Can you view server load?
It seems like some sort of error on server. Can you contact hosting support?
If error comes up suddenly – it is not wordpress issue.To aviod data loss.
Backup database. Use hosting web panel for it (if any) or upload phpMyAdmin to server to make backup manually. Or use some of free googlable scripts.When running site measure time it takes site to load. Reload the same page several times.
Find some file on server, for example image from theme, and try to load it from different browsers severals times. Turn browser cache off.
If image downloading time differs a lot – it is server issue.Or just post your site URL here ))