shopandstore
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Is there any way to add funciton only to Postsi can find and edit everything, if you have shown me a simple “if, then”, then i could understand, but I’m not skilled in programming, so it’s a hard for me how to edit the code exactly..
Forum: Fixing WordPress
In reply to: Is there any way to add funciton only to PostsIf it’s a page, then the following function to be used:
function sanitize_title_with_dashes($title) {
$title = preg_replace(‘XX’, ‘HELLO‘, $title);
return $title;
}If it’s a post, then the following function to be used:
function sanitize_title_with_dashes($title) {
$title = preg_replace(‘XX’, ‘GOOD BY‘, $title);
return $title;
}esmi, thanks so much for your help!
Forum: Fixing WordPress
In reply to: Is there any way to add funciton only to Postshoh.. what is going to me?… i’ve mistaken again.
IF it is page’s area, ..
IF it is Post‘s area, …Forum: Fixing WordPress
In reply to: Is there any way to add funciton only to Postsyes, i know that, but only i want, if you can give me the correct coding, because i can’t get the correct value. in formatting i want:
IF it is page’s area, then i want the following function to be used:
function sanitize_title_with_dashes($title) {BBBBBBBBBBBBBBBBB}IF it is post‘s area, then i want the following function to be used:
function sanitize_title_with_dashes($title) {AAAAAAAAAAAAA}can you help in this?
Forum: Fixing WordPress
In reply to: Is there any way to add funciton only to Postshoh, thanks !!
sory, i meant not theme>functions.php , but wp-includes> formating.php
Forum: Fixing WordPress
In reply to: Problem with $_GET['page_id']=3.31.
oh , it may be bug, because everything works for posts, but not for page.Thanks mates, don’t bother any much.
Forum: Fixing WordPress
In reply to: Problem with $_GET['page_id']=esmi,
Fatal error: Call to undefined function get_page_by_title()Forum: Fixing WordPress
In reply to: Problem with $_GET['page_id']=thanks! but it doesn’t work too. strtoupper() function doesn’t need double quotation at all, it works well:
strtoupper(word); gives you = WORD,
but the whole function, which has
$_GET[‘page_id’]=strtoupper(word);
can’t find the page named mysite.com/WORD, but it searches again for the page mystie.com/word” (with lowercase).
everything works well for posts, but i want for pages..Forum: Fixing WordPress
In reply to: Publishing a file: SOMEONE KNOWS such plugin?thanks. !
Forum: Fixing WordPress
In reply to: Publishing a file: SOMEONE KNOWS such plugin?Jorge,
can you tell me what to i need to insert there? i hav eno idea how i can create index.php files with permalink..Forum: Fixing WordPress
In reply to: (Noob in wp) can you corect my simple codeI have solved. Close the toopic
Forum: Fixing WordPress
In reply to: how to use capital letters in Post permalinksorry, the first code crashes, here is working code:
[code moderated - please follow the forum guidelines for posting code]Forum: Fixing WordPress
In reply to: how to use capital letters in Post permalinkthanks for advice.