jaguarx
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Please Help Me with Page TemplatePlease bear with me a little. I understand the template doesn’t parse the included. I have to do whatever extra in the template to make formatting to happen. I simply want to keep a page content only for maintenance reason. Is the markup defined by the theme already at this point so the template can retrieve and implement it? Is it a better way than php include to do this?
Warren
Forum: Fixing WordPress
In reply to: Please Help Me with Page TemplateThe included file is a page. Would it be better to keep only text in it and handle the markup as part of the template’s task?
Warren
Forum: Fixing WordPress
In reply to: Custom page , How to create a file ?I posted a message on something similar. I’m creating a page template for a static page with page.php as the model. I replaced code In between get_header() and get_sidbar() to display the text from the static page:
<?php
if(is_page(‘home’))
{
include (TEMPLATEPATH, ‘/text.txt’);
}
?>text.tx is just a copy of the static page file ’cause I don’t know the name of the page file. The displayed text is not formatted. What in page.php is just for blogs not for pages. Can you point me to the right direction to read a page file and show it in a neat way?
Warren
Forum: Fixing WordPress
In reply to: Please Help Me with Page Templatedo77,
The code I ran to read a text file is:
<?php
if (is_page(‘home’))
{
include (TEMPLATEPAT, ‘/text.txt’);
}
?>Warren
Forum: Fixing WordPress
In reply to: Please Help Me with Page Templatedo77,
I’m still have everything running on my computer. So far I have two pages of articles. The first one called ‘home’ and assigned to the template cover_page.php which is just bare bone right now. The template will invoke a plugin for top menu bar in the future. In other words, I don’t really have much my own code for you to look at yet.
Warren
Forum: Fixing WordPress
In reply to: Theme ConfigurationKichu,
Thanks for your reply. What I want is a top menu bar with items of my own choice. The themes providing top menu bars always set up your pages as menu items. I would need to tweak the header.php files a lot to get what I want. The alternative is to use menubar plugins to implement the menu bar in each page. Do you think this is a vaible approach? Thanks,
Forum: Themes and Templates
In reply to: Can A Page Template Read a Page?t3los_,
Sorry about the blank page. Yes, I mean the page attaching to a page template having no content. While I understand the place holder role it plays, I have questions to that effect:
1. Is it the most common practice to keep attaching pages blank?
2. Is there a way to display the content of an attaching page?Thanks,
Forum: Themes and Templates
In reply to: Can A Page Template Read a Page?t3los_:
I need to get a landing page done badly. At first I was going to use PHP/HTML to make it. Later on I ran into WordPress and decided to switch to WordPress. I created a static page and made a page template for it. Basically I have a blank static page with a page template. Rignt or wrong, I have the template hold all the text and graphics in it. The landing page is up and running now but the blank page approach bothers me. I need experienced users tell me if the blank page proach is the most common way. If not, what is?
Thanks,
Warren
Forum: Your WordPress
In reply to: My Simple Chinese Weblogvan2d,
Would you like to tell me how you add the rectangular blocks around articles? It’s something I want to do but haven’t figured out yet(a newbie, of course).
Warren