davidvil
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: convert static site to dynamic siteI mean something like:
<?php if(is_page(‘Home’)) {
“show me the page with the content”
}
?>Forum: Fixing WordPress
In reply to: convert static site to dynamic siteThanks for your answer,
I want all my content to be in WP and not hard-coded.
Now, i created in WP admin few pages namely: Home, About, etc’ and i’m asking what is the wp-function i need to use in page.php to navigate between the pages, to get the content for every page i click on?Forum: Fixing WordPress
In reply to: convert static site to dynamic siteHow can i write in page.php file a condition statement to navigate between the different pages? I mean to put all the content in the wordpress and navigate through the page.php?
Forum: Fixing WordPress
In reply to: convert static site to dynamic siteHello,
I have a problem, when i click on all the pages it show the content i have in the Home page. This content localized in page.php like hard-coded content.
How can i changed the situation?Forum: Fixing WordPress
In reply to: convert static site to dynamic siteThank you very much, to both of you. it is help me very much.
Forum: Fixing WordPress
In reply to: Creating static page/posts pageI don’t think so, because i have WAMP5 that install PHP5 and MYSQL5 so i don’t know why i had this problem?!
Forum: Fixing WordPress
In reply to: Creating static page/posts pageThank you so so much.
The problem is solved after i replace the line 2561 with 2 lines:
$tmpPageVariable = get_option(‘page_for_posts’);
$this->queried_object = & get_page($tmpPageVariable);Thanks
Forum: Fixing WordPress
In reply to: Creating static page/posts pageHello every body.
I didn’t explain myself so i will ask the question again.
I went to settings>>Reading and i get 2 options for “Front page displays”: 1.”Your latest posts”. 2. “A static page (select below)”. I chose the second option and i chose home page for “Front page” and blog for “Posts page”. I saved the changes and went to my site. Now when i click on “blog” page i get the next line: Fatal error: Only variables can be passed by reference in c:\wamp\www\wordpress\wp-includes\query.php on line 2561.
Line 2561 state the next: $this->queried_object = & get_page(get_option(‘page_for_posts’));
I will thanks for help.
DavidForum: Fixing WordPress
In reply to: Creating static page/posts pageIf someone can help me about this question.
Forum: Fixing WordPress
In reply to: Creating static page/posts pageI mean a certain page that i choose for the “posts page”!