browncoat
Forum Replies Created
-
Forum: Themes and Templates
In reply to: WordPress tag for including text in page template?Thank you for clearing that up for me.
Forum: Themes and Templates
In reply to: WordPress tag for including text in page template?I wonder if I might have some pointers as to what I’m doing wrong regarding a related issue, would be much apprechiated.
I have set the “posts page” (Settings > Reading) to the page “News” and the template attribute for that page have been set to “News page” (page_news.php).
Now when I have included the loop to fetch the posts nothing shows up, how come? Loop code have been copied from the codex.
https://wordpress.pastebin.com/C36zYqbq
[Code moderated as per the Forum Rules. Please use the pastebin]
Forum: Themes and Templates
In reply to: WordPress tag for including text in page template?ahh super, thanks ??
Forum: Themes and Templates
In reply to: WordPress tag for including text in page template?pastebin -> https://wordpress.pastebin.com/6ep9T7wE
Forum: Themes and Templates
In reply to: WordPress tag for including text in page template?Unforunately I have wordpress installed localy using xampp during learning/testing and my router cant be configured to allow outside access ??
But here’s the template, nothing to it really.
<?php /* Template Name: Org.Page */ ?> <?php get_header(); ?> <div id="pageContent"> <div class="contentContainer"> <div class="rightSectionOne"> <h1>F?reningen</h1> <div class="hrLine"></div> <?php the_content(); ?> </div> <div class="fixedPhotoFrame"> <div><h4>Styrelsen</h4></div> <img src="images/khfg_group.jpg" /> <div class="descriptionBox"> Fr?n v?nster: ppl names. </div> </div> </div> </div> <?php get_footer(); ?>
Forum: Themes and Templates
In reply to: WordPress tag for including text in page template?Thank you suzanne, I have looked at the page.php for the Twentyten theme, activating that theme writes out the page text OK, but when I insert the tag
<?php the_content(); ?>
in my templeate nothing is written out (even checked source view). Strange :SForum: Themes and Templates
In reply to: WordPress tag for including text in page template?hmm “Displays the contents of the current post” make me confused, its a page text i want displayed (textfield for the page), not a post.
Forum: Fixing WordPress
In reply to: Whitespace after opening body tag – going crazy!Thanks!
I converted the header.php to “utf-8 without BOM” and it now works!
So aparently there was some sort of char there, but i SWEAR it didn’t show up in the code. Not in my code app anyway.Big thanks to both of you!
Forum: Fixing WordPress
In reply to: Whitespace after opening body tag – going crazy!what do you mean with “invisible”, there’s no space or character between the tags, I even put the tags on the same line next to eachother now.
i just noticed that by removing the font property in the css file the whitespace grows somewhat (5px perhaps…)
prop. looks like: font: normal 0.8em sans-serif,Arial;edit: font property for the BODY that is
Forum: Fixing WordPress
In reply to: Whitespace after opening body tag – going crazy!Ok, with that in mind, even a reinstall would create the same problem then. wp has two million files it it… chanses of spotting the blank line? ??
Forum: Fixing WordPress
In reply to: Whitespace after opening body tag – going crazy!Interestingly if I write some plain text right after the body tag the text comes “dead top” on the page inside the whitespace.
Forum: Fixing WordPress
In reply to: Whitespace after opening body tag – going crazy!the theme doesn’t have a functions.php, but I did spot a error in the wp-config.php. I had written “UTF8” instead of “UTF-8” but changing it didn’t do anything that I can see.
Forum: Fixing WordPress
In reply to: Whitespace after opening body tag – going crazy!Hi, thanks.
I have no blank lines before the doctype, not between body and the div either. Futhermore I used notepad++’s function “trim trailing space” on the file.Forum: Fixing WordPress
In reply to: WP 2.7 errors after PHP upgradethanks upgrading is done ??