navets-stevan
Forum Replies Created
-
Forum: Themes and Templates
In reply to: WordPress loop looping empty div / li ?Thanks a lot .. I didn’t read it properly ??
Forum: Themes and Templates
In reply to: WordPress loop looping empty div / li ?Sorry forget to put the code bacticks sorry, now my post looks like glibberish..
Anyway here’s my code :
<ul> <!-- wp query starts --> <?php $the_query = new wp_query('category=offerings&posts_per_page=15'); ?> <?php if ($the_query->have_posts() ) : while ($the_query->have_posts() ) : $the_query->the_post(); ?> <li><a href="<?php get_permalink(); ?>"><?php the_title();?></a><li> <?php endwhile; else: ?> <?php _e('Sorry, no posts matched your criteria.'); ?> <?php endif; ?> <?php wp_reset_query(); ?> </ul>
Hope it makes more sense now, Can it keeps generating empty li tags and with closing li tags..
Thanks, PS sorry for my bad English.
Forum: Themes and Templates
In reply to: "Broken Theme"?Try reloading it maybe it’s corrupt or missing a few files, do you have style.css in your unzipped theme folder ?
Forum: Themes and Templates
In reply to: bloginfo('template_directory') doesn't work ?really sorry everyhone forget to chmod .. in my own webserver … newbie mistake , really sorry again ..
Forum: Themes and Templates
In reply to: Trying to make my own wp-themesI found the way to do it by making home.php , if i post the query_posts() in home.php only the main page is changing . And when clicking category page , it’s work all the categories still show .
I found it when looking into the hieracrhy again .. the first WP try is to find is home.php.
But chip pointed out not to change the query_posts .. maybe i will use wp_query() insted.
But my WP-website is done , Thanks , to all the guys here.
Forum: Themes and Templates
In reply to: Trying to make my own wp-themeslooking for the archieve.php and category.php but can’t find what am i looking for
Ended up getting ways to get archive and showing the archives everywhere .. and the categories page , still confused about it ..
Could someone pointed out what i need ?
Basically what my website needs is just for the index.php not showing other category then the home category and not affecting the other categories links ..
Can i make it simple by ? just linking my index.php file to home category ?
Like this this is my index page https://www.localhost/wordpress/
Could i redirect it to https://www.localhost/wordpress/?cat=3Your reply and help will be much appreciated ??
Thanks beforeForum: Themes and Templates
In reply to: Trying to make my own wp-themesthanks i will check the link , will come back if have more question ..