"/> at the top of my page
-
hello everyone,
Im looking to get some help on a small problem that just started happening and i dont know why. At the top of my website on random pages it display this at the top “/>. im not sure how to get rid of that so if anyone could help me out i would really appreciate it. thanks!
-
i havent deleted it yet but i dont have have a home.php file or a homepage.php i do see the index.php and a page.php
please paste the code from index.php
also let us know if your theme has a subfolder named includes or functions by logging into the ftp client or using file manager via cpanel.
sometimes all files are not displayed in the editor, especially the files under subfolders.
Home Page <meta> tags
Meta DescriptionYou should use meta descriptions to provide search engines with additional information about topics that appear on your site. This only applies to your home page.
Thats what the theme says in the part where it gives me the option of adding a meta tag.
The whole meta tag is being automatically inserted rather than just the bit that is needed, so removing the excess will fix this. It is the meta tag in the header.php that needs to be edited and it’s only being shown as broken on the homepage as that’s the only page that’s using it at the moment. Other pages and posts have no meta descriptions.
there are no subfolders but here is the index.php code.
<?php
/*
Template Name: Home Page
*/
?>
<?php
if($_REQUEST[‘ptype’] == ‘favorite’)
{
if($_REQUEST[‘action’]==’add’)
{
add_to_favorite($_REQUEST[‘pid’]);
}else{
remove_from_favorite($_REQUEST[‘pid’]);
}
}else
if($_REQUEST[‘ptype’]==’profile’)
{
global $current_user;
if(!$current_user->data->ID)
{
wp_redirect(get_option(‘siteurl’).’/?ptype=login’);
exit;
}
include_once(TEMPLATEPATH.’/library/includes/profile.php’);exit;
}elseif($_REQUEST[‘ptype’] == ‘phpinfo’)
{
echo phpinfo();exit;
}elseif($_REQUEST[‘ptype’] == ‘csvdl’)
{
include (TEMPLATEPATH . “/library/includes/csvdl.php”);
}
elseif($_REQUEST[‘ptype’] == ‘register’ || $_REQUEST[‘ptype’] == ‘login’)
{
include (TEMPLATEPATH . “/library/includes/registration.php”);
}elseif($_REQUEST[‘ptype’]==’post_listing’)
{
if($_REQUEST[‘ptype’]==’post_listing’ && get_option(‘is_user_addevent’)==’0′){wp_redirect(get_option(‘siteurl’));exit;}
include_once(TEMPLATEPATH.’/submit_place.php’);exit;
}elseif($_REQUEST[‘ptype’]==’post_event’)
{
if($_REQUEST[‘ptype’]==’post_event’ && get_option(‘is_user_eventlist’)==’0′ && $_REQUEST[‘pid’]==”){wp_redirect(get_option(‘siteurl’));exit;}
include_once(TEMPLATEPATH.’/submit_event.php’);exit;
}
elseif($_REQUEST[‘ptype’] == ‘preview’)
{
include (TEMPLATEPATH . “/library/includes/preview.php”);
}
elseif($_REQUEST[‘ptype’] == ‘preview_event’)
{
include (TEMPLATEPATH . “/library/includes/preview_event.php”);
}
elseif($_REQUEST[‘ptype’] == ‘paynow’)
{
include (TEMPLATEPATH . “/library/includes/paynow.php”);
}elseif($_REQUEST[‘ptype’] == ‘paynow_event’)
{
include (TEMPLATEPATH . “/library/includes/paynow_event.php”);
}
elseif($_REQUEST[‘ptype’] == ‘cancel_return’)
{
include_once(TEMPLATEPATH . ‘/library/includes/cancel.php’);
set_property_status($_REQUEST[‘pid’],’draft’);
exit;
}
elseif($_GET[‘ptype’] == ‘return’ || $_GET[‘ptype’] == ‘payment_success’) // PAYMENT GATEWAY RETURN
{
set_property_status($_REQUEST[‘pid’],’publish’);
include_once(TEMPLATEPATH . ‘/library/includes/return.php’);
exit;
}
elseif($_GET[‘ptype’] == ‘success’) // PAYMENT GATEWAY RETURN
{
include_once(TEMPLATEPATH . ‘/library/includes/success.php’);
exit;
}
elseif($_GET[‘ptype’] == ‘notifyurl’) // PAYMENT GATEWAY NOTIFY URL
{
if($_GET[‘pmethod’] == ‘paypal’)
{
include_once(TEMPLATEPATH . ‘/library/includes/ipn_process.php’);
}elseif($_GET[‘pmethod’] == ‘2co’)
{
include_once(TEMPLATEPATH . ‘/library/includes/ipn_process_2co.php’);
}
exit;
}
elseif($_REQUEST[‘ptype’] == ‘sort_image’)
{
global $wpdb;
//echo $_REQUEST[‘pid’];
$arr_pid = explode(‘,’,$_REQUEST[‘pid’]);
for($j=0;$j<count($arr_pid);$j++)
{
$media_id = $arr_pid[$j];
if(strstr($media_id,’div_’))
{
$media_id = str_replace(‘div_’,”,$arr_pid[$j]);
}
$wpdb->query(‘update ‘.$wpdb->posts.’ set menu_order = “‘.$j.'” where ID = “‘.$media_id.'” ‘);
}
echo ‘Image order saved successfully’;
}
elseif($_REQUEST[‘ptype’] == ‘delete’)
{
global $current_user;
if($_REQUEST[‘pid’])
{
wp_delete_post($_REQUEST[‘pid’]);
wp_redirect(get_author_link($echo = false, $current_user->data->ID));
}
}
elseif($_REQUEST[‘ptype’] == ‘att_delete’)
{
if($_REQUEST[‘remove’] == ‘temp’)
{if($_SESSION[“file_info”])
{
$tmp_file_info = array();
foreach($_SESSION[“file_info”] as $image_id=>$val)
{
if($image_id == $_REQUEST[‘pid’])
{
@unlink(ABSPATH.”/”.$upload_folder_path.”tmp/”.$_REQUEST[‘pid’].”.jpg”);
}else{
$tmp_file_info[$image_id] = $val;
}}
$_SESSION[“file_info”] = $tmp_file_info;
}}else{
wp_delete_attachment($_REQUEST[‘pid’]);
}
}
else
{ get_header();?>
<?php dynamic_sidebar(1);?>
<div id=”wrapper” class=”clearfix”>
<div id=”content” class=”clearfix”>
<?php dynamic_sidebar(2); ?>
</div> <!– content #end –>
<div id=”sidebar”>
<?php dynamic_sidebar(3); ?>
</div> <!– sidebar #end –>
<?php get_footer(); ?>
<?php }?>As you can observe
get_header();?> <?php dynamic_sidebar(1);?>
The header is being called of at the end.
Additionally the index.php is calling up files from subfolders as I told you.
include_once(TEMPLATEPATH.'/library/includes/profile.php');exit;
catchybiz.com/wp-content/themes/Geoplaces/library/includes/profile.php
you will notice that the file profile.php may not be visible in the editor. check all the files which are being called and that will resolve the problem.
Please use the pastebin for all large code excerpts. It works better anyway.
You can also try removing (insert comment) the lines and then testing, this is a quick work around to see which file is the real culprit.
Eg. suppose if you don’t wish to call the following file
include_once(TEMPLATEPATH.'/library/includes/profile.php');exit;
this will exclude the file
//include_once(TEMPLATEPATH.'/library/includes/profile.php');exit;
only works with in php tags. for HTML tags you use <!– comment –>
- The topic ‘"/> at the top of my page’ is closed to new replies.