davoscript
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: query_posts in loop.php overrides the archive pageGlad to read that!
Regards!
Forum: Fixing WordPress
In reply to: How do I display custom fields in the Twentyten theme?Hi there!
To display the custom fields you have to use this function inside the loop:
<?php the_meta(); ?>For more information about it, check this link: http://codex.wordpress.org/Template_Tags/the_meta
Regards greatdanemaniac!
Forum: Fixing WordPress
In reply to: query_posts in loop.php overrides the archive pageHi greatdanemaniac, as t3los_ suggest, you should determinate where you want to show that. I see you say you want your “custom post types” and “original posts” in the “HOMEPAGE”.. so try something like this:
<?php if ( is_home() ) : ?> <?php query_posts( array( 'post_type' => array('essay', 'tutorial', 'post', 'gamereview') ) ); ?> <?php endif; ?> <?php THE LOOP... ?>This way, the query_posts function will only affect the loop when in the front page.
Best Regards,
DavidForum: Plugins
In reply to: [Plugin: LeagueManager] Widget ProblemThis issue has a really hard-find solution, at least it was for me.
Ok this is mostly due to another widget conflicting, so try deactivating each widget that you suspect, in my case it was a widget that i was developing so ill have to check what’s wrong there =P I’ll post more info when i find the error so other can have a better idea of the posible problem.
FYI: I read that wp-events widget can cause this issue.
Regards!
Forum: Plugins
In reply to: [Plugin: LeagueManager] Widget ProblemAny news about this?
Regards,
David.Forum: Fixing WordPress
In reply to: MootoolsWell, actually you can add your JS files anywhere inside your theme, i recomend to do this:
/my_theme/js/scripts.js
You should always use the WordPress native “wp_enqueue_script” function instead of hardcode, actually in the examples above, we see how <?php bloginfo(‘stylesheet_directory’); ?> is beeing used, wich is wrong since you could be using a “child-theme”.
David.