Magneto View All Products List

<?php
if($this->isLimitCurrent(“all”)):?>
<a href=”<?php echo $this->getLimitUrl($this->getDefaultPerPageValue());?>”>
View Less
</a>
<?php
//  if t last page number is greater than 1
elseif ($this->getLastPageNum()>1): ?>

<a href=”<?php echo $this->getLimitUrl(‘all’)?>” title=”<?php echo $this->__(‘View All Products’) ?>”>
<?php echo $this->__(‘View All’) ?>
</a>

<?php endif;?>

Another one Link :

http://www.magentocommerce.com/wiki/groups/248/display_products_on_home_page

All Products Showing Home Page :

{{block type=”catalog/product_list” name=”home.catalog.product.list” alias=”products_homepage” template=”catalog/product/list.phtml”}}

Single Category All Products :

{{block type=”catalog/product_list” name=”home.catalog.product.list” alias=”products_homepage” category_id=”4″ template=”catalog/product/list.phtml”}}

Rss Feed Link in WP

URL for RDF/RSS 1.0 feed
<?php bloginfo('rdf_url'); ?>
URL for RSS 0.92 feed
<?php bloginfo('rss_url'); ?>
URL for RSS 2.0 feed
<?php bloginfo('rss2_url'); ?>
URL for Atom feed
<?php bloginfo('atom_url'); ?>
URL for comments RSS 2.0 feed
<?php bloginfo('comments_rss2_url'); ?>

http://codex.wordpress.org/WordPress_Feeds

Wp calender Stamp

function calendar (){ ?>
<div>
<div><?php the_time(‘M’) ?></div>
<div><?php the_time(‘j’) ?></div>
<div><?php //the_time(‘Y’) ?></div>
</div>
<?php
}
//add_action(‘thesis_hook_before_headline’, ‘calendar’);

/*** calendaricon ***/
.calendaricon{
background:url(images/date-stamp-bg.jpg) no-repeat top left;
position:relative;
width:45px;
height:49px;
float:left;
margin-right:10px;
}
.month{
position:absolute;
font:11px Arial, Helvetica, sans-serif;
color:#FFFFFF;
text-align:center;
width:100%;
top:4px;
}
.day{
position:absolute;
font:bold 19px Georgia, “Times New Roman”, Times, serif;
color:#000000;
text-align:center;
width:100%;
top:20px;
}
/*** calendaricon ***/

WP Menu Path

wp-includes/nav-menu-template.php
wp-includes/post-template.php

<ul>
<?php wp_list_pages('title_li='); ?>
</ul>


<ul>
  <?php wp_list_pages('include=5,9,23&title_li=<h2>' . __('Poetry') . '</h2>' ); ?>
</ul>


<ul>
  <?php wp_list_pages('sort_column=menu_order'); ?>
</ul>


<ul>
  <?php wp_list_pages('sort_column=menu_order&title_li=<h2>' . __('Prose') . '</h2>' ); ?>
</ul>


<ul>
  <?php wp_list_pages('sort_column=menu_order&title_li='); ?>
</ul>


<ul>
  <?php wp_list_pages('sort_column=post_date&show_date=created'); ?>
</ul>


<ul>
  <?php wp_list_pages('exclude=17,38' ); ?>
</ul>


<ul>
  <?php wp_list_pages('include=7,13,26,35&title_li=<h2>' . __('Pages') . '</h2>' ); ?>
  </ul>


<ul>
  <?php
  global $id;
  wp_list_pages("title_li=&child_of=$id&show_date=modified
  &date_format=$date_format"); ?>
</ul>

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. 🙂

Curve Bg Css

.left-panel{
width:605px;
float:left;
margin:25px 0;
}
div.panel-t-l{
background:url(images/curve-bg-t-l.png) no-repeat top left;
}
div.panel-t-l div.panel-t-r{
background:url(images/curve-bg-t-r.png) no-repeat top right;
padding:8px 0 0 0;
}

div.panel-b-l{
background:url(images/curve-bg-b-l.png) no-repeat bottom left;
}
div.panel-b-l div.panel-b-r{
background:url(images/curve-bg-b-r.png) no-repeat bottom right;
padding:0 0 8px 0;
}
.panel-white-bg{
background:#fff;
padding:10px 15px;
min-height:235px;
}

.right-panel{
margin:25px 0;
width:325px;
float:right;
}
div.panel-r-t-l{
background:url(images/panel-r-t-l.png) no-repeat top left;
}
div.panel-r-t-l div.panel-r-t-r{
background:url(images/panel-r-t-r.png) no-repeat top right;
padding:8px 0 0 0;
}

div.panel-b-r-l{
background:url(images/panel-b-r-l.png) no-repeat bottom left;
}
div.panel-b-r-l div.panel-b-r-r{
background:url(images/panel-b-r-r.png) no-repeat bottom right;
padding:0 0 8px 0;
}

Single Image background

/* ################################### */
/*    Menu Start  */
/* ################################### */
.menu-container{
width:580px;
margin:7px auto 15px auto;
}

a.menu-nor{
text-decoration:none;
color:#000000;
font:16px “Myriad Pro”, Verdana, Tahoma, Arial, Helvetica, sans-serif;
outline:0;
margin-right:30px;
}
a.menu-nor span{
background:url(images/menu-nor.png) no-repeat 100% 0;
text-decoration:none;
font:16px “Myriad Pro”, Verdana, Tahoma, Arial, Helvetica, sans-serif;
color:#000000;
padding:10px 0 10px 0;
height:18px;

}
a.menu-nor span span{
background-position: 0 -100%;
padding:10px 20px 10px 20px;
height:18px;
font:16px “Myriad Pro”, Verdana, Tahoma, Arial, Helvetica, sans-serif;
margin-left:-10px;
}
a.menu-nor:hover{
color:#ffffff !important;
font:16px “Myriad Pro”, Verdana, Tahoma, Arial, Helvetica, sans-serif;
}
a.menu-nor span:hover{
background:url(images/menu-hil.png) no-repeat 100% 0;
padding:10px 0 10px 0;
height:18px;
color:#ffffff !important;
font:16px “Myriad Pro”, Verdana, Tahoma, Arial, Helvetica, sans-serif;
}
a.menu-nor span span:hover{
background-position: 0 -100%;
padding:10px 20px 10px 20px;
height:18px;
color:#ffffff !important;
font:16px “Myriad Pro”, Verdana, Tahoma, Arial, Helvetica, sans-serif;
margin-left:-10px;
}

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;
}
?>

Css padding techniques

Here i mention some of css techniques.

1.  /*padding: top right+left bottom;*/

padding:20px 22px 18px;

2.  /*padding: top right bottom left;*/

padding:20px  10px 18px 22px;

3.  /*padding: top+bottom left+right;*/

padding:20px  22px;
4.  /*     margin: top left+right bottom !important;*/

margin: 0 6px 20px !important;

© 2020 Spirituality