Use Exact Below code for categories and pages.
wp_list_categories:
<?php $title_free_cats = wp_list_categories(‘echo=0′);
$title_free_cats = preg_replace(‘/title=\”(.*?)\”/’,”,$title_free_cats);
echo $title_free_cats; ?>
wp_list_pages:
<?php $title_free_pages = wp_list_pages(‘echo=0′); $title_free_pages = preg_replace(‘/title=\”(.*?)\”/’,”,$title_free_pages); echo $title_free_pages; ?>
Article written by admin
To exclude category in wordpress rss feed.
you can simple write.
<a href="<?php bloginfo('url'); ?>/feed?cat=-1&cat=-2">(RSS)</a>
or you can simple write below code in your theme function.php
to exclude category categories.
function excludeCat($query) {
if ($query->is_feed) {
$query->set('cat','-1');// for multiple use with , eg- -1,-2,-3
}
return $query;
}
add_filter('pre_get_posts','excludeCat');
Article written by admin
wordpress does not provide the facility to enable session into wordpress.
but for enable session in wordpress you need to add
add_action(‘init’, ’sessionStart’));
function sessionStart()
{
if ( ! session_id())
session_start();
}
code in your theme function.php.
But you must installed exec-php plugin to enable php code.
Article written by admin
Here is example to demonstrate
$(”div,span,p.myClass”).css(”border”,”1px solid green”);
the border will be apply in all div,span ,p.myClass class element.
Article written by admin
Using css method we can modify class using jquery
example:$(”.CssClass1.CssClass2″).css(”border”,”1px solid green”);
CssClass1,CssClass2 will be modify to border 1px solid green.
Article written by admin
using css() method we can apply css in div element.
example:
$(”div”).css(”border”,”1px solid green”);
Article written by admin
Here is the example of toggled element using the :visible or :hidden selectors.
var vis = $(’#formdiv’).is(’:visible’);
var hide= $(’#formdiv’).is(’:hidden’);
If you want to show a div visibility, then there is example for this
For example:
$(’#formdiv:visible’).animate({left: ‘+=100px’}, ’slow’);
Article written by admin