wkwebsite
Forum Replies Created
-
Forum: Plugins
In reply to: image thumbnails on excerpts – margin from the text?nice page, do you have msn? i am also working on my wordpress page, so that we can exchange some idea.
Forum: Plugins
In reply to: get_post_image cannot show thumbnails for non admin userI hav tested the simple get thumbnails code in functions page
function get_thumbnail() { $images = get_children('post_parent='.get_the_ID().'&post_type=attachment&post_mime_type=image'); if ( $images ) { foreach( $images as $image_id => $image_infos ) { $the_image = wp_get_attachment_image_src( $image_id, 'thumbnail' ); if ( $the_image ) { print "<img src='$the_image[0]'/>"; } } }else{ print "<img src='none.jpg'/>"; } return ""; }It can get the thumbnails of uploaded images if the post is posted by admin in WP administration, but if i loggon as a contributor or author, the above thumbnails doesnt work n returns the none.jpg images.
HOW? WHY? HELP~!!
Forum: Plugins
In reply to: Sidebar with recent posts loaded first before the POST and caused misloadedProblem solved when i replaced the recent posts with
<?php wp_get_archives(‘type=postbypost&limit=10’); ?>Forum: Plugins
In reply to: Sidebar with recent posts loaded first before the POST and caused misloadedIn sort way to explain this,
My sidebar added with recent posts and placed first before reading the post.
So when read the post, the <?php the_title();?> displayed the lastest post from my recent posts and not the current 1.
it is also because i put the <?php the_title();?> before the <?php if (have_posts())?> function.
So, just wanna know anyway to fix it.
Forum: Plugins
In reply to: How do I change or remove a robots meta tag or remove it?Not quite understand ur question.
if cannot, just put the <?php wp_head(); ?> back.
for robots tag, u can type in
<META NAME=”ROBOTS” CONTENT=”index,follow”>create a robots.txt amd write
User-agent: *
Disallow:and upload it to ur www root folder.
Forum: Fixing WordPress
In reply to: “Archives” shows in Page, BUT Page navigation doesn’t WORK~!Re: Moshu
Thank you, i m learning on it…
bcoz my wordpress upload in http://www.root server.
sometimes, when click to first page:
http://www.xxx.com/
it links to index.html n not index.php
…IanD, yup, thanks.
Forum: Fixing WordPress
In reply to: “Archives” shows in Page, BUT Page navigation doesn’t WORK~!It is because my page contains different Layout and settings.
Forum: Fixing WordPress
In reply to: Trouble with links in sidebar moving to bottom of pageI think you better backup a copy of your files first.
For the main layout, u try make a table.
<?php get_header(); ?>
…………………
……………..
…………..
<table width=”100%” border=”0″ cellpadding=”0″ cellspacing=”0″>
<tr>
<td valign=”top”>
……here is ur page content….</td>
<td valign=”top”> <?php get_sidebar(); ?></td>
<tr>
</table>
<?php get_footer(); ?>Forum: Fixing WordPress
In reply to: List all Archives Content under a PageThanks alot~!
Forum: Fixing WordPress
In reply to: List all Archives Content under a PageSuddenly found a problem,
If i use the <?php query_posts(‘cat=1’); ?> within the page, the page did display all the Archives correctly.but for the next entry or previous entry. When i click on it, it display nothing…..it suppose to show few previous archives…but i cant c any thing….
Need some changes for the following code??
<?php next_posts_link(‘Previous Entries’) ?>
<?php previous_posts_link(‘Next Entries’) ?>Forum: Fixing WordPress
In reply to: List all Archives Content under a PageThanks alot~!! this is what i want~!
Sorry for my poor englishThis code: <?php query_posts(‘cat=1’); ?> is to specify the query item of the page. if not,
The following code:
<?php while (have_posts()) : the_post(); ?>
<h4 id=”post-<?php the_ID(); ?>”><?php the_title(); ?></h4>
…..
will display only the content of the page.coming soon: my web,
http://xcentre.netForum: Fixing WordPress
In reply to: HELP~! Lazyest Gallery need GD Library? How to Install it?thank you~!
Forum: Fixing WordPress
In reply to: Trouble with links in sidebar moving to bottom of pageHaha, U must thank me now. I know the reason because i also face it before.
Just change the code in style.css for sidebar.
OR
remove the <div id=”sidebar”???? >and </div> for your sidebar code.If still have problem, just remove all the <div id=????watever> code in ur page.
Coz some settings in ur css file coz ur bar unfit in ur page.
Forum: Fixing WordPress
In reply to: Why post doesn’t support page templatesIn Admin section,
When “write page”, you may add or choose ur own page templates.But in “write post”, you only can have one post theme, single.php.
Some of my post do have large pictures, that’s why i wanna have my own post template.
Sorry for my poor english.
Forum: Fixing WordPress
In reply to: Get Page URL / LinksThanks alot~! THAT is what i want. 🙂
MUaaaaksssss~!!!