2010-10-06, 23:50:22
2010-10-07, 00:54:11
Try again, I don’t really understand your question. What do you need your code to do?
2010-10-07, 03:47:27
Hi Zegnåt,
<?php echo__(' Zegnåt ')>
Zegnåt: <?php get_page_title(); >
Zegnåt instead of.. I want to write > <?php get_page_title(); >
Zegnåt Wrote:Try again, I don’t really understand your question. What do you need your code to do?
<?php echo__(' Zegnåt ')>
Zegnåt: <?php get_page_title(); >
Zegnåt instead of.. I want to write > <?php get_page_title(); >
2010-10-07, 04:26:19
Use
(you forgot to close php script tag with "?" by the end)
ps. I have no idea about what we are talking in this thread.
Code:
<?php return_page_title(); ?>
ps. I have no idea about what we are talking in this thread.
2010-10-07, 04:56:21
yojoe Wrote:<?php return_page_title(); ?>
Hi yojoe,
The script code in this way: <?php echo__(' PAGE TITLE') ?>
Here's the "text" content is turning into another language (eg EN->TR)
But I would like to add the path of the script code <?php get_page_title(); ?>
(unfortunately, my English is not very good)
use: http://codecanyon.net/item/website-trans...view/69435
2010-10-07, 05:46:08
Code:
<?php echo __(return_page_title()); ?>
2010-10-07, 06:55:48
Zegnåt Wrote:return_page_title() gives you the page title as a string. Your __() function wants a string to translate. So the above code should be what you’re looking for.Code:<?php echo __(return_page_title()); ?>
@yojoe Thank you! Also thank you @Zegnåt
works perfectly;
Code:
<?php echo __(return_page_title()); ?>
2010-10-07, 08:29:15
return_page_title ok thanks! Does the same apply in get_page_content? :/
2010-10-07, 16:42:26
Johonwayni Wrote:Does the same apply in get_page_content? :/No. All get_* functions use “echo†to display content, and you need a string for your function. There is no return_* function for the page content, so you will have to come up with your own solution.
I haven’t tested this, but it should work. Add the following function to your code:
Code:
function return_page_content() {
global $content;
$content = stripslashes(htmlspecialchars_decode($content, ENT_QUOTES));
$content = exec_filter('content',$content);
return $content;
}
Code:
<?php echo __(return_page_content()); ?>
2010-10-07, 18:22:42
Cool! I worked for this function watches, but did not work .. Your written function works very well. Again thank you so much Zegnåt!