Khairil Zhafri
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Permalinks and how listings appear in GoogleYou need to tell what’s inside <title> </title>.
To get “Video preview: new Top Chef”, use
<?php wp_title(''); ?>
“Video preview: new Top Chef|From Scratch”, assuming “From Scratch” is your blog title use
<?php echo wp_title(''); if (is_home()) { echo ''; } else { echo ' | '; } bloginfo('name'); ?>
Forum: Fixing WordPress
In reply to: Blog TitlesDont get what you mean. Can you please explain what do you mean by “my topic”, where “at the top of my Blog” and what exactly you want to display to logged in users?
Forum: Themes and Templates
In reply to: What’s the new get_links_list function?Forum: Themes and Templates
In reply to: How do you make a wordpress theme site?Look for theme switcher plugin.
Forum: Themes and Templates
In reply to: WordPress For Business? (Cart)Forum: Installing WordPress
In reply to: Upgrade QuestionYes you can do it that way. Comments, posts and all blog settings are not stored in a file, but in the database.
Forum: Themes and Templates
In reply to: Parent page IDAdmin panel: Manage > Pages.
Look for the page title you want and the first column of the row is its ID.
Forum: Fixing WordPress
In reply to: How do I delete blog from Global Dashboard?I don’t think there is a way to remove your blog immediately but if you stop using the Stats plugin after a while, it will disappear from global dashboard.
Forum: Fixing WordPress
In reply to: Blog AddressAnd you need not to change SERVER_NAME, btw.
Forum: Fixing WordPress
In reply to: Blog AddressOh sorry, actually I just copied that code from another thread I post into. If you still wanna try this, despite whatever moshu said, try this:
Assuming that you have successfully installed WP with:
WordPress URL: https://localhost/blog
Blog URL: https://localhost/blogThen put the following:
$hostname = $_SERVER['SERVER_NAME']; $hostname = str_replace('www.', '', $hostname); if ($hostname == '192.168.1.110') { define('WP_SITEURL', 'https://192.168.1.110/blog'); define('WP_HOME', 'https://192.168.1.110/blog'); } elseif ($hostname == 'myDomain.org') { define('WP_SITEURL', 'https://myDomain.org/blog'); define('WP_HOME', 'https://myDomain.org/blog'); }
The main idea is that, if one accesses your wordpress site at 192.168.1.110, WP will overwrite the original WordPress URL and Blog URL (in general options) to https://192.168.1.110/blog. Same goes if one access your WP site on myDomain.org. So you can actually access one single WordPress instance through three different URL.
Well if this work, then you might wanna tell moshu. If it dont, it’s fine.
Forum: Plugins
In reply to: Do unused plugins use resources?No.
Forum: Installing WordPress
In reply to: CalenderWhat do you mean by “the calender is stuck on March 6th”?
Forum: Fixing WordPress
In reply to: Outside WP DirectoryForum: Fixing WordPress
In reply to: Getting Blog to show at blog.domain.com and not domain.com/blogMaybe you wanna try to clear your DNS cache first.
Sometimes machines get confused like us.
Forum: Fixing WordPress
In reply to: Blog AddressSo you are trying to say that
i) you can only access the site at localhost or 127.0.0.1
ii) other people access the site through https://192.168.1.110Do I get this correct?
If so try this. It should work theoretically:
1. Make sure that both localhost and 192.168.1.110 resolve to the same location2. Set the WordPress address and Blog address in General Options to https://localhost/
3. Add the following code in the wp-config.php after the
table_prefix
line:$hostname = $_SERVER['SERVER_NAME']; $hostname = str_replace('www.', '', $hostname); if ($hostname == 'SecondDomain.com') { define('WP_SITEURL', 'https://192.168.1.110'); define('WP_HOME', 'https://192.168.1.110'); }