custom home page

  • Question
  • Updated 3 years ago
hey Allan, I am trying to create a custom homepage (home.php) and add custom fields.. Is this possible?

I cannot get the content to display on the home page from the editor field. (the default way)
It only displays the posts not the content on the pages.

what should i use to call the content form the page
Photo of brodyB

brody

  • 23 Posts
  • 0 Reply Likes

Posted 3 years ago

  • 1
Photo of AxelYa

AxelYa

  • 548 Posts
  • 105 Reply Likes
the_content();
Photo of brodyB

brody

  • 23 Posts
  • 0 Reply Likes
i am using
the_content();

what i am dong is creating home.php and giving it a template name, then create a page and assign that template..

if i use the content

I get the first post not the content on the page
Photo of brodyB

brody

  • 23 Posts
  • 0 Reply Likes
i got it
Photo of brodyB

brody

  • 23 Posts
  • 0 Reply Likes
hey AxeIYa do you know what is causing this?

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0

my host said its the theme.. What files mess with?
Photo of AxelYa

AxelYa

  • 548 Posts
  • 105 Reply Likes
Definitely server problem. Do google search for this warning and you will get detailed answer.
Photo of brodyB

brody

  • 23 Posts
  • 0 Reply Likes
Back to my original post, If I create a home.php and set it as a static page, the slider does not work anymore..

is there a way to get around this?
Photo of AxelYa

AxelYa

  • 548 Posts
  • 105 Reply Likes
Can you describe how you do home.php ?

Home.php do not need to be marked as static - wordpress checks it first anyway.
Photo of brodyB

brody

  • 23 Posts
  • 0 Reply Likes
I copy the code from index.php to home.php the pictures disapears and only see the BG background the scroller still works.. but not picture... I i go to settings, writting, set Front page displays to custom page.. ( I need this to display the description on the home page, I want it to be editable) the slideshow does not work at all, i do not see any arrows nothing..

-----------------------------------------------------------------------------------------------------
Photo of AxelYa

AxelYa

  • 548 Posts
  • 105 Reply Likes
You have leaderboard widget for description.

can you give a link, I still don't see the big picture
Photo of brodyB

brody

  • 23 Posts
  • 0 Reply Likes
its on my localhost.. I see the numbers and it scrolls but no Picture

If i switch to index.php it works

________________________________________________________________
Photo of brodyB

brody

  • 23 Posts
  • 0 Reply Likes
the slider does not work at all in chrome if i switch to home.php
Photo of AxelYa

AxelYa

  • 548 Posts
  • 105 Reply Likes
First. I think you do not need to mark home.php as static - wordpress will read file called home.php before index.php by default.

Second. If script doesn't work - check body class - read your source and see what class is assigned to body tag.
Photo of brodyB

brody

  • 23 Posts
  • 0 Reply Likes
yes I need to make the home page static (the description needs to be editable..)

Can you tell me why the slide show is not working, greenstonedevelop.com
Photo of brodyB

brody

  • 23 Posts
  • 0 Reply Likes
if i turn off the (Sliding Feature Area) in the general options the image only rotates when i reload the page, but when i turn it on the slider does not work at all.. Can you fix this bug?
Photo of AxelYa

AxelYa

  • 548 Posts
  • 105 Reply Likes
Try this : file js.options.php line 290
replace is_home() with is_front_page()

btw. it is not a bug
Photo of brodyB

brody

  • 23 Posts
  • 0 Reply Likes
still not working, did you look at the source code?
Photo of AxelYa

AxelYa

  • 548 Posts
  • 105 Reply Likes
works for me
Photo of brodyB

brody

  • 23 Posts
  • 0 Reply Likes
yes i know it works because i changed it back to index.php
Photo of brodyB

brody

  • 23 Posts
  • 0 Reply Likes
;)
Photo of brodyB

brody

  • 23 Posts
  • 0 Reply Likes
so if you can fix those problems that will be great
Photo of AxelYa

AxelYa

  • 548 Posts
  • 105 Reply Likes
Can you send me your code for the static home page. I will try it on my localhost - that would be faster. axel.yangshuo @ hotmail.com

but I still don't get , if it works - what else need to do
Photo of brodyB

brody

  • 23 Posts
  • 0 Reply Likes
my static code for the home.php is the same as index.php exept i made home.php a template and set it as default home page in Settings -> Writing