santosh.sahoo
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Change upload location using 'upload_dir' filterTry this way.
function resume_photo_upload_dir( $pathdata ) { // change path here return $pathdata; } add_filter('upload_dir', 'resume_photo_upload_dir'); $time = current_time('mysql'); $overrides = array('test_form'=>false); $file = wp_handle_upload($_FILES['your-photo'], $overrides, $time); remove_filter('upload_dir', 'resume_photo_upload_dir');Forum: Fixing WordPress
In reply to: Moving directories to root broke my site. Please HELP!you need to upgrade PHP version in your server.
Forum: Themes and Templates
In reply to: Adding div to nav menuyou can use a filter to add different class to differen menu items.
Try this , it may help u.
add_filter('nav_menu_css_class', 'auto_custom_type_class', 10, 2 ); function auto_custom_type_class($classes, $item) { if ($item->type_label == "CUSTOM_TYPE_NAME"){ $classes[] = "New_Class"; } return $classes; }just change CUSTOM_TYPE_NAME to the name of your custom post type and New_Class with the name of your class and paste this snippet in your theme’s functions.php file.
You can also use the filter named “wp_nav_menu”
Hope this helps
Forum: Themes and Templates
In reply to: [Distinction] Widgetscould be due to jQuery conflicts.
Soluion :
1.Try and use wordpress jQuery
2. check error form error console and if u find any , paste it here.Forum: Themes and Templates
In reply to: Populate sidebar with posts from a categorycan be done in many ways, i am assuming you want the data to be displayed in the sidebar.
create a dynamic sidebar and use the page_id or course_id to get the data related to the course and show them in the sidebar.
Forum: Fixing WordPress
In reply to: Page titles showing up TWICE under header… HELP!open page.php from your working theme directory and check if u have this line twice
the_title();If u find it written twice then just replace it with
//the_title();Forum: Fixing WordPress
In reply to: Real CRON set up .bump
use print_r($post); to check if $post is in the scope.
Forum: Fixing WordPress
In reply to: Sidebar on Front Page not working after upgrade to 3.1.1the two sidebars i.e,
Recent from Interviews and Appearances and recent from Accomplishments.are these the 2 sidebars u r talking about??
add these lines at the top.
global $post; $user_ID = $post->post_author;Hope this helps.
Forum: Fixing WordPress
In reply to: Sidebar on Front Page not working after upgrade to 3.1.1post the site url and i’ll try help.
Forum: Fixing WordPress
In reply to: Remove excerpts from lists posts under a categorypossible, if u use conditional tags before the_excerpt(); in the loop.
But this will be changed when u update ur theme.Forum: Fixing WordPress
In reply to: posts have disappearedN.B :
Always use pluging that have been verified by wordpress team. Or ask professional wordpress programmers to make 1 for u.
Thanks.Forum: Fixing WordPress
In reply to: posts have disappearedi dont really understand if u have the posts…anyways
If u have the posts in your database then u should be happy.download the kubric(default) theme and activate it .. and check if all posts appear( They should if present in databse.) .
if post are not in ur database..then i dnt know any way to recover them unless u had any backup’s.
Forum: Fixing WordPress
In reply to: Moved WP site To a Different Server, but Having Issues! Please Help!change them to http://businessexchange.bz/
in ur option table.