![]() |
![]() |
wp de o tarz link kullanamazsın yada baya bi ugraşman gerekiyor.html sitemi wordpress e çeviriyorum ancak eski bazı linkler Forumİyinet.html şeklinde. ancak wp de linklerde büyük harf kullanamıyorum. forumiyinet.html şeklinde yaratıyor uzantıyı.
bunun bir yolu var mıdır?
%year%
The year of the post, four digits, for example 2004
%monthnum%
Month of the year, for example 05
%day%
Day of the month, for example 28
%hour%
Hour of the day, for example 15
%minute%
Minute of the hour, for example 43
%second%
Second of the minute, for example 33
%postname%
A sanitized version of the title of the post. So “This Is A Great Post!” becomes “this-is-a-great-post” in the URI (see note below)
%post_id%
The unique ID # of the post, for example 423
%category%
A sanitized version of the category name. Nested sub-categories appear as nested directories in the URI.
%author%
A sanitized version of the author name.
$wpdb->query(
"INSERT IGNORE INTO $wpdb->posts
(post_author, post_date, post_date_gmt, post_content, post_content_filtered, post_title, post_excerpt, post_status, post_type, comment_status, ping_status, post_password, post_name, to_ping, pinged, post_modified, post_modified_gmt, post_parent, menu_order, post_mime_type)
VALUES
('$post_author', '$post_date', '$post_date_gmt', '$post_content', '$post_content_filtered', '$post_title', '$post_excerpt', '$post_status', '$post_type', '$comment_status', '$ping_status', '$post_password', '$post_name', '$to_ping', '$pinged', '$post_date', '$post_date_gmt', '$post_parent', '$menu_order', '$post_mime_type')");
function StripUrl($title)//senin zevkine kalmış
{
$title = str_replace("#", "", $title);
$title = str_replace("/", "", $title);
$title = str_replace("$", "", $title);
$title = str_replace("&", "", $title);
$title = str_replace("&", "", $title);
$title = str_replace("+", "", $title);
$title = str_replace(",", "", $title);
$title = str_replace(":", "", $title);
$title = str_replace(";", "", $title);
$title = str_replace("=", "", $title);
$title = str_replace("?", "", $title);
$title = str_replace("@", "-", $title);
$title = str_replace("<", "", $title);
$title = str_replace(">", "", $title);
$title = str_replace("%", "", $title);
$title = str_replace("{", "", $title);
$title = str_replace("}", "", $title);
$title = str_replace("|", "", $title);
$title = str_replace("\\", "", $title);
$title = str_replace("^", "", $title);
$title = str_replace("~", "", $title);
$title = str_replace("[", "", $title);
$title = str_replace("]", "", $title);
$title = str_replace("`", "", $title);
$title = str_replace("'", "", $title);
$title = str_replace("\"", "", $title);
$title = str_replace(" ", "-", $title);
return $title;//ucwords le felan ilk harfi büyük yapabilirsin.
}