santosh.sahoo
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Moved WP site To a Different Server, but Having Issues! Please Help!check if u have changed the siteurl , home values in option table.
Forum: Fixing WordPress
In reply to: How to hide "Home" link in nav bargo to functions.php of twentyten theme
and find the following code
function twentyten_page_menu_args( $args ) { $args['show_home'] = true; return $args; } add_filter( 'wp_page_menu_args', 'twentyten_page_menu_args' );and replace it with
function twentyten_page_menu_args( $args ) { $args['show_home'] = false; return $args; } add_filter( 'wp_page_menu_args', 'twentyten_page_menu_args' );Forum: Fixing WordPress
In reply to: posts have disappearedinstall this plugin phpmyadmin .
This plugin will give u an interface to access ur database…and try to check if the post are present in the table named wp_posts.Forum: Fixing WordPress
In reply to: posts have disappearedCheck database . If ur posts are present in database then deactivate all plugins and chack ur dashboard.
Forum: Fixing WordPress
In reply to: How do i filter posts in Home page.what action hook should i use to run that function before the loop….
“loop_start” wont work…
and i dont want to write in the theme files :'(
Forum: Fixing WordPress
In reply to: How do i filter posts in Home page.that could be done….but where do i use that function…??
in the filter callback fn:
add_filter( ‘pre_get_posts’, ‘exclude_category’ );??
Forum: Fixing WordPress
In reply to: How do i filter posts in Home page.i’m working on a local server…
no external server to show u.
Anyways.. i’ll explain it wait an example.
Suppose there are 10 posts with id 1,2,3 ….10
normally in home page all the posts will appear.
but i want only posts with id 2,6,7 to in home page.how do i do it without hand coding in the theme files.
Forum: Themes and Templates
In reply to: Activating a dynamic sidebar with some widgets included in it.??After some research i have found 2 ways…
1. changing the value of “sidebar_widgets”, present in options table.
2.using the_widget() function.will check what mystic has used.
thanks alchymyth.
Forum: Fixing WordPress
In reply to: new to wordpressgo to wp-content/themes/(ur theme)/header.php
Forum: Fixing WordPress
In reply to: Home link after moving blogchange the home,siteurl in option table to ur new home url…
Forum: Fixing WordPress
In reply to: Parse error: syntax erroru need to debug the syntax error in function.php…directly go to wp-content/themes/<ur theme>/function.php and edit it…
Forum: Fixing WordPress
In reply to: WP_Widget class with file upload.Forum: Fixing WordPress
In reply to: Load javascript only when specify.http://codex.wordpress.org/Function_Reference/wp_register_script
check the above linkForum: Fixing WordPress
In reply to: Load javascript only when specify.i dont remember…but i think before using wp-enqueue_script you need to register that js file.
will let u know shortly…5 mins…Forum: Fixing WordPress
In reply to: Load javascript only when specify.use wp_print_script hook to include your script…eg:
add_action("wp_print_scripts","my_func"); function my_func(){<? <!--you can use wp_enqueue_scripts() instead of what i have written below --> <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.prettyPhoto.js"></script> <?php }read about wp_print_script hook, and wp_enqueue_script() for better understanding.
Hope this will solve ur prob.