ElevenTwenty2
Forum Replies Created
-
Forum: Plugins
In reply to: [ACF RRule Field] Usage in custom WP Query?Hello @florushj / @marcbelletre,
I would very much be interested in seeing examples of how you managed to get a list of the recurring events in an agenda-style display.
Thanks,
RayForum: Fixing WordPress
In reply to: Retrieve Category ID from Custom Field For WP LoopYes, I’m entering a category number into the custom field value.
the page is a custom page I created artist-template.php using the instructions from http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates
here’s the exact code i’m using in one of the sections.
<!-- begin top tracks --> <div id="artist-toptracks"> <h2></h2> <div class="tptracksbox"> <?php $toptracks = get_post_meta($post->ID, 'artist-audio-category', true); $tracks = new WP_Query('cat=' . $toptracks . '&numberposts=5'); while ($tracks->have_posts()) : $tracks->the_post(); ?> <!-- begin post roll--> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3> <div class="instru-content2"> <?php the_content(); ?> </div> <?php endwhile; ?> </div> </div> <!-- end top tracks -->Could it be that it’s trying to pull the custom field from the posts instead of the page?
Forum: Fixing WordPress
In reply to: Retrieve Category ID from Custom Field For WP LoopAnyone? Maybe I didn’t explain it too well, so I’m gonna try and reiterate what I’m trying to do.
I want to have one universal template for Artists.
So whenever the client adds a new Artist Page, he’ll select the “Artist Template” and he’ll use Custom Fields to enter all the details needed so that it displays that specific artists information.
For example:
http://www.soundrealmstudios.com/artists/drake/
http://www.soundrealmstudios.com/artists/sdot/Each page uses the same template, however I could only get the post meta to work on everything but a WP loop. As you can see in the Top Tracks and Audio/Video section it pulls all the posts and not the specific category I’m telling it to use (through Custom Fields).
Forum: Fixing WordPress
In reply to: Retrieve Category ID from Custom Field For WP LoopHmm it seems if I replace the $post->ID with the Page ID # it seems to work fine. I use $post->ID on all previous get_post_meta functions on the same page, and they work fine. Would the WP_Query be causing the problem?
Forum: Fixing WordPress
In reply to: Retrieve Category ID from Custom Field For WP Loopdid you mean, http://codex.wordpress.org/Template_Tags/query_posts#Custom_Field_Parameters ?
This method seems as if it’d take more work than it should. To name each post with a meta tag that I want to feed to this roll.