carlosmendoza
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Need help removing extra space above image in postit’s the empty
<h2>
inside<div class="showcase-hero">
what causes the gap.Remove it or add an specific class and adjust the margins because the template.css has
margin:25px 0 10px;
for all the headingsForum: Fixing WordPress
In reply to: Need expert help with 301I used the redirection plugin to manage the redirects in a similar change in permalinks.
Give it a try
Forum: Fixing WordPress
In reply to: HTML linebreaks (<BR> tags) in author/user bio section not workingoops…
forgot to add the backticks
… Try adding a couple of
<br />
Forum: Fixing WordPress
In reply to: HTML linebreaks (<BR> tags) in author/user bio section not workingok, give this a try:
<?php $the_author_description = apply_filters("the_content",get_the_author_meta('description'); echo $the_author_description;?>
and for the line breaks, it’s odd because in my test it works just like the main editor. Try adding a couple of
Forum: Fixing WordPress
In reply to: Allowing visitors to registerYour visitors have to register at: https://www.theresident.net/www.new.theresident.net/wp-login.php?action=register
You have to point your visitors there by placing this link in a prominent place
Forum: Fixing WordPress
In reply to: HTML linebreaks (<BR> tags) in author/user bio section not workingTo display the bio with format you have to process the contents of it first.
Assuming you got the user data by using:
$userdata = get_userdata(intval($author));
The biographical info is in: $userdata->user_description, and to display it the way you want, apply the filter ‘the_content’ to it
$user_description = apply_filters("the_content",$userdata->user_description); echo $user_description;
This should display the bio with line breaks or the format you entered.
Forum: Fixing WordPress
In reply to: Displaying messages from twitterthere are many plugins to do that, try Twitter tools
Forum: Fixing WordPress
In reply to: Manipulating how posts are displayedThis should get you in the right direction:
Template Tags/get postsForum: Fixing WordPress
In reply to: trouble outputting current page title ONLY if it is the parent pageoops, small error in my previous post:
<?php if(!is_home() and !is_search() and !is_single()) { /* For non-blog pages */ ?> <?php if ($post->post_parent) { echo "<h4>.get_the_title($post->post_parent);echo "</h4>"; } else { echo "<h4>";wp_title('');echo "</h4>"; } if($post->post_parent) $children = wp_list_pages("sort_column=menu_order&depth=2&title_li=&child_of=".$post->post_parent."&echo=0"); else $children = wp_list_pages("sort_column=menu_order&depth=2&title_li=&child_of=".$post->ID."&echo=0"); if ($children) { ?> <ul> <?php echo $children; ?> </ul> <?php } ?> <?php } ?>
Forum: Fixing WordPress
In reply to: trouble outputting current page title ONLY if it is the parent pageTry with this:
<?php if(!is_home() and !is_search() and !is_single()) { /* For non-blog pages */ ?> <?php if ($post->post_parent) { echo "<h4>.get_the_title($post->ID);echo "</h4>"; } else { echo "<h4>";wp_title('');echo "</h4>"; } if($post->post_parent) $children = wp_list_pages("sort_column=menu_order&depth=2&title_li=&child_of=".$post->post_parent."&echo=0"); else $children = wp_list_pages("sort_column=menu_order&depth=2&title_li=&child_of=".$post->ID."&echo=0"); if ($children) { ?> <ul> <?php echo $children; ?> </ul> <?php } ?> <?php } ?>
Forum: Fixing WordPress
In reply to: Massive Amount of PHP/MySQL Queries Causing High Server Loadyou are right, 19 queries shouldn’t be a problem, perhaps another application is causing the load, because 6.2 seconds for 19 queries is high.
Forum: Fixing WordPress
In reply to: Massive Amount of PHP/MySQL Queries Causing High Server LoadHave you tried to verify the number of queries per page request?.
Add to the footer.php of your theme this: <!– <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. –> and visit some pages of your site checking for the result of the code above in the page source (disable the cache first), this will give you an idea of the pages with the highest number of queries.With this you can figure if it’s caused by a plugin or by multiple loops in the template and work to optimize or reduce the number of queries
Even with WP Super Cache enabled at some point depending of your sites activity WordPress has to regenerate the page.
Forum: Fixing WordPress
In reply to: Blog title function not working in 2.8.6It’s not a plugin or wordpress issue, what you see in the header is an image set in the CSS of the theme, your blog title (Andy Johns) is hidden because the CSS of the theme sets it at 9000px to the left.
upload a logo image to the ‘images/’ directory with the name ‘logo.jpg’ in the theme or edit the CSS to fix this