How to fixed XML Parsor Error Report?

Remarks

If an XML declaration (<? XML …?>) appears in your feed, the first thing in the diet, especially a room.

Unfortunately, with WordPress, it seems too easy for a plugin, theme or your configuration file to a blank line. Compounding this problem, some – but not all – feed readers compensate for this common error, the error may go unnoticed for a while.

Solution

* PHP also uses a similar format: <? php … ?>. Note that the final php?> should be removed from all PHP code files modules, includes, etc. The final separation stabbing is optional in PHP (but not XML), and removing it helps prevent unwanted white space at the end the files can cause problems with your feeds.
* Check your wp-rss2.php and WP atom.php for blank lines outside of <? and?> parentheses sections.
* Check your wp-config.php file for blank lines outside of <? and?> parentheses sections.
* Check your themes functions.php file for blank lines outside of <? and?> parentheses sections.
* One by one, disable plugins and rehabilitation until the cause of the problem. 🙂

how to display specific post from home page in wp?

<div>
<?php
if (have_posts()) : the_post();
query_posts(‘category_name=Home Pink’);
endif;
//The Loop Below content take your blog theme post coding content start…
if ( have_posts() ) : while ( have_posts() ) : the_post();
?>
<div id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>

<h2 style=”margin:0;”><a href=”<?php the_permalink(); ?>” title=”<?php printf( esc_attr__( ‘Permalink to %s’, ‘twentyten’ ), the_title_attribute( ‘echo=0’ ) ); ?>” rel=”bookmark”><?php the_title(); ?></a></h2>
<div style=”background:#EF4584;”>
<?php twentyten_posted_on(); ?>
</div><!– .entry-meta –>
<div>&nbsp;</div>
<div>
<?php  home_the_content(); ?>
</div><!– .entry-content –>

</div><!– #post-##  Coding Content End –>
<?php
endwhile;
endif;
?>
</div><!– Green Bg End –>

Reference url :

http://codex.wordpress.org/Function_Reference/query_posts

http://codex.wordpress.org/Template_Hierarchy

How to Custom Page display in Front Page?

<?php
$page_name = array(9,10,11); // 123 should be replaced with a specific Page’s id from your site, which you can find by mousing over the link to edit that Page on the Manage Pages admin page. The id will be embedded in the query string of the URL, e.g. page.php?action=edit&post=123.

$company_solution_data = get_page( $page_name[0] ); // You must pass in a variable to the get_page function. If you pass in a value (e.g. get_page ( 123 ); ), WordPress will generate an error.
$company_portfolio_data = get_page( $page_name[1] );
$company_testimonials_data = get_page( $page_name[2] );
?>
<div id=”solutionzone”>
<?php
$company_solution_content = apply_filters(‘the_content’, $company_solution_data->post_content); // Get Content and retain WordPress filters such as paragraph tags. Origin from: http://wordpress.org/support/topic/get_pagepost-and-no-paragraphs-problem
$company_solution_title = $company_solution_data->post_title; // Get title
echo ‘<h2>’.$company_solution_title.'</h2>’;
if (strlen($company_solution_content)>130)
{            echo “<p>”.substr($company_solution_content,0,128).”…</p><div class=’clr’></div>”; // Output Content
echo ‘<a href=”?page_id=9″>more</a><div></div>’;
}
else{
echo $company_solution_content;
}
?>

How can I Print All MySQL Database Tables & Fields Using PHP?

<?php
/****************
* File: displaytables.php
* Date: 1.13.2009
* Author: design1online.com
* Purpose: display all table structure for a specific database
****************/

//connection variables
$host = “localhost”;
$database = “your_db_name”;
$user = “your_username”;
$pass = “your_pass”;

//connection to the database
mysql_connect($host, $user, $pass)
or die (‘cannot connect to the database: ‘ . mysql_error());

//select the database
mysql_select_db($database)
or die (‘cannot select database: ‘ . mysql_error());

//loop to show all the tables and fields
$loop = mysql_query(“SHOW tables FROM $database”)
or die (‘cannot select tables’);

while($row = mysql_fetch_array($loop))
{

echo “
<table cellpadding=2 cellspacing=2 border=0 width=75%>
<tr bgcolor=#666666>
<td colspan=5><center><b><font color=#FFFFFF>” . $row[0] . “</font></center></td>
</tr>
<tr>
<td>Field</td><td>Type</td><td>Key</td><td>Default</td><td>Extra</td>
</tr>”;

$i = 0;

$loop2 = mysql_query(“SHOW columns FROM ” . $row[0])
or die (‘cannot select table fields’);

while ($row2 = mysql_fetch_array($loop2))
{
echo “<tr “;
if ($i % 2 == 0)
echo “bgcolor=#CCCCCC”;
echo “><td>” . $row2[0] . “</td><td>” . $row2[1] . “</td><td>” . $row2[2] . “</td><td>” . $row2[3] . “</td><td>” . $row2[4] . “</td></tr>”;
$i++;
}
echo “</table><br/><br/>”;

}
?>

Reference : http://jadendreamer.wordpress.com/2009/01/13/print-all-mysql-database-tables-fields-using-php/

thanks above content for the above url.

Custom Pagination

Custom Pagination without WordPress Plugins

http://wordpress.org/support/topic/wp-31-custom-post-pagination

http://wordpress.org/support/topic/wp-query-pagination-and-offeset

Create A Network in wordpress

http://codex.wordpress.org/Create_A_Network

How to i move wordpress new path or new folder?

1. Copy current wp files fully in your local system.
2. Then you can upload all the files your requirement folder.
3. Then you go current WP folder
4. Click General
5. Change the site url and blog url

Finally you change the path. Try above things. Below i find one of introduction for above topic. I found the below article page search in google via.

http://help.yahoo.com/l/us/yahoo/smallbusiness/webhosting/wordpress/wordpress-26.html

How to change the wordpress old siteurlpath?

Go to your database via phpmyadmin or you sql server via.
Find the wp-options ==> site-url field ==> edit ==> change your url path.

Then go to click next link.
There find the Home field ==> edit ==> change your url path.

then click go. Enjoy.

More useful related link is below :
http://www.tamba2.org.uk/wordpress/site-url/
http://codex.wordpress.org/Moving_WordPress
http://codex.wordpress.org/Changing_The_Site_URL

Why Receive Spam Mail in WP?

Well, the easiest solution just click on spam is not a few times to remember Google is your address not spam.

If you do e-mail marketing, then it will be a problem if your e-mail is marked as spam, but if your e-mail address is used only as an e-mail address of the WP, then a simple solution is very good.

The not spam button work for me ok.

WP : Failed to send your message. Please try later or contact administrator by other way?

Option 1:

You can change the wordpress contact form area from section  ([your-name] <[your-email]>)  to  info@yourserver.com.

And add all field inside <label>

example :

<p><label>Your Name (required)<br />
[text* your-name]</label></p>

Option 2:

Another way you can use “WP Mail SMTP plugin”. Then you configure your mail server details.

then it will working.

thanks,
J.

© 2020 Spirituality