Paste the following code in functions.php
add_action(“wp_head”, “my_copyright_meta”);
function my_copyright_meta() {
if(is_singular()){
echo “<meta name=”copyright” content=”© phpcodez.com 2011″>”;
}
}
Paste the following code in functions.php
add_action(“wp_head”, “my_copyright_meta”);
function my_copyright_meta() {
if(is_singular()){
echo “<meta name=”copyright” content=”© phpcodez.com 2011″>”;
}
}
Paste the following code in functions.php
add_action('admin_head', 'excerpt_textarea_height');
function excerpt_textarea_height() {
echo'
<style type="text/css">
#excerpt{ height:500px; }
</style>
';
}
Add the below given code in “functions.php” of the curren template folder
add_filter(‘login_errors’,create_function(‘$a’, “return null;”));
Add the below given code in your .htaccess file
RedirectMatch 301 ^/category/(.+)$ http://www.askapache.com/$1 #
OR
RewriteRule ^category/(.+)$ http://www.askapache.com/$1 [R=301,L]
2) Edit/Add the page to be blocked
4) set a Custom Field of “block” and set the value to “true”.
global $wp_rewrite;
$pagestruct = $wp_rewrite->get_page_permastruct();
$gdPermalink = ” != $pagestruct ?”Yes”:”No”;
function getCurrentCatID(){
global $wp_query;
if(is_category() || is_single()){
$cat_ID = get_query_var(‘cat’);
}
return $cat_ID;
}
Call the function “get_category() ” to fetch the current category details
$category = get_category( getCurrentCatID() );//
$parentID = $cat->category_parent;
echo $parentID;
function adminPaginationLimit(){
global $per_page, $wp_query;
$per_page = 500;
$posts_per_page = 500;
$wp_query->query(‘showposts=’. $posts_per_page);
}
add_action(‘admin_head’, ‘adminPaginationLimit’);
<?php
$postQuery = “SELECT distinct(wposts.post_title),cast(wpostmeta.meta_key as DATE),wposts.ID,wposts.post_content,wposts.post_date,wposts.comment_count
FROM $wpdb->posts wposts
LEFT JOIN $wpdb->term_relationships ON (wposts.ID = $wpdb->term_relationships.object_id)
LEFT JOIN $wpdb->term_taxonomy ON ($wpdb->term_relationships.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id)
LEFT JOIN $wpdb->postmeta AS wpostmeta ON wposts.ID = wpostmeta.post_id
WHERE wpostmeta.meta_key = ‘dvd_release_date’ AND $wpdb->term_taxonomy.taxonomy = ‘category’ AND $wpdb->term_taxonomy.term_id IN(‘3952’)
ORDER BY wpostmeta.meta_value DESC LIMIT $itemPerPage”;
$postResults = $wpdb->get_results($postQuery, OBJECT);
foreach( $postResults as $post ) {
echo $post->post_title;
}
?>