rockon
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: how to have 2 new queries on a custom page templatehave I coded something wrong in the page?
Forum: Fixing WordPress
In reply to: how to have 2 new queries on a custom page templateI tried what you said in multiple different ways. With & without the reset query code. With
$post->IDin the 1st loops &get_the_ID()in the 2nd and vice versa but with no luck =/I’ve noticed that the two small thumbnails that should appear are loading way after the rest of the page is loading.
There must be something odd going on. It’s starting to bug me!
Anyone else had this or know what could be wrong?
Forum: Fixing WordPress
In reply to: how to have 2 new queries on a custom page templatesorry to bump. anyone know?
Forum: Fixing WordPress
In reply to: how to have 2 new queries on a custom page templateUnfortunately that didn’t work. Tried it inline with the endwhile too.
Anyone got any other ideas?
Forum: Fixing WordPress
In reply to: Comments link not working – please helpCan someone please answer. This is starting to stress me out 🙁
Forum: Fixing WordPress
In reply to: Comments link not workingI’m sorry, I’m bumping. Just wasn’t sure if this post would be lost in the archive of previous posts otherwise.
Can anyone help ^^
🙂
Forum: Fixing WordPress
In reply to: Comments link not workingI don’t want the comments template to show up on my custom page. I want the link, “Comments (0)”, to go to the relevant posts page like it does when you click the comments link on any post from the homepage.
With my site, the ‘comments (0)’ link on this page:
http://rockonpublishing.co.uk/rock-on-recommends/goes nowhere because it’s looking for:
http://rockonpublishing.co.uk/rock-on-recommends/#respondwhen it should be going to:
http://rockonpublishing.co.uk/rock-on-recommends/recommend-3/#respondForum: Fixing WordPress
In reply to: Post Meta Data from specific category in SidebarCan anyone help me out?
Forum: Fixing WordPress
In reply to: Post Meta Data from specific category in SidebarHaha, I need the luck. I don’t know how to write the bit that will show it.
Forum: Fixing WordPress
In reply to: Post Meta Data from specific category in SidebarAha! Adding it to both of them seems to work 🙂
I’m now going to be a pain and ask how I can write it so I can use the custom field outputs anywhere within my advanced text sidebar bit. At the moment it just echoes is out on to the page but what if i’d like to customize the layout out the fields.
Forum: Fixing WordPress
In reply to: Post Meta Data from specific category in SidebarIt’s the exact code above (It’s in an Advanced Text widget put in the sidebar).
Forum: Fixing WordPress
In reply to: Post Meta Data from specific category in Sidebaryeah, it gives the recommends-thumb custom field if I remove the new line and re-add ?> to the first custom field.
But if I use the code I just posted above, nothing shows.
I tried renaming to Rock On Recommends (that’s exactly how I have it)
Forum: Fixing WordPress
In reply to: Post Meta Data from specific category in SidebarThis doesn’t churn anything out now:
<?php $cat_id = get_cat_ID('rock on recommends'); // using category name $key = 'recommends-thumb'; //is this correct? $args=array( 'cat' => $cat_id, 'meta_key'=> $key, 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 1, 'caller_get_posts'=> 1 ); $my_query = null; $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); echo get_post_meta($my_query->post->ID, $key, true) echo get_post_meta($my_query->post->ID, 'recommends-artist', true) ?> <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p> <?php endwhile; } wp_reset_query(); // Restore global post data stomped by the_post(). ?>Forum: Fixing WordPress
In reply to: show category name without linknevermind – i got it
http://www.livexp.net/wordpress/display-wordpress-category-name-without-link.html
Forum: Fixing WordPress
In reply to: Post Meta Data from specific category in SidebarMy goal now is to show 2 custom fields:
recommends-thumb and recommends-artist below it.
I don’t know how to add to that code to put the 2nd custom field in (recommends-artist).