karin24
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Showing just one category WITHOUT using the cat-IDI am sorry Moshu that I am too stupid to do it ?? Maybe because i am a woman, hihihi!!!
I am currently using this code within my non-WP-file:
<?php require('https://www.[domain]/database/wp-blog-header.php'); ?> <?php query_posts('cat=23'); ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <ul> <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></li> </ul> </div>
But then I receive an errormessage “Parse error: syntax error, unexpected $end in “
Why does it not work???? I am getting crazy ??
Forum: Fixing WordPress
In reply to: Showing just one category WITHOUT using the cat-IDThat was a missunderstanding. I just wanted to say that the “normal HTML page” is NOT a database. Of course it is a php-page, but it is not located in the wp-folder. So I have to use the php-include-tag.
Sorry ??
Forum: Fixing WordPress
In reply to: Showing just one category WITHOUT using the cat-IDThanks moshu.
For some reasons this will not work. I dont want to create a file called category-13.php because everything is working fine within wordpress and i dont want to have different styles within my categorys.
But I want to create a “plugin” which I can use on other static HTML pages. For example:
I have a normal HTML page about fire in forrests. Then I want to include a box
(<? include (“https://[mywebpage]/directoryofwordpress/fire.php”); ?>)
with all my blog entries about the topic fire (category=13). So within this fire.php file all blog entries should be shown.Possible?
Forum: Installing WordPress
In reply to: Custom fields in blog entriesIf I use
<?php the_meta(); ?>
it works, but then all keys/custom fields are shown an this is not so good.
So I want to show just the key architect, but if I use on of the following codes it does not work:
<?php get_post_meta(10,'Architect',true); ?> <?php get_post_meta(10,'architect',true); ?> <?php get_post_meta(10,architect,true); ?> <?php get_post_meta(10,'Architect',true); ?>
Guys, please help me!!!
Forum: Fixing WordPress
In reply to: Showing just one category WITHOUT using the cat-IDThanks GamerZ for your post but all I tried does not work. I am using this code:
<table border="0"> <td> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php query_posts('cat=13'); ?> <?php endwhile; else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?> </td> </table>
It should show me all content (headlines with possibility to click on it) of category 13.
Any suggestions? Thanks, Karin
Forum: Fixing WordPress
In reply to: Category PicturesCode is working fine, thanks! You are a genius! ??
Forum: Installing WordPress
In reply to: Custom fields in blog entriesUnfortunately this does not work. Any other suggestions?
Forum: Fixing WordPress
In reply to: Different design of category pages and content pagesThanks epicalex!! It works…
Forum: Fixing WordPress
In reply to: My webdesign and wordpress: How to connect it?Problem solved ?? I don’t know what I did but now it works…