Rose
Forum Replies Created
-
I removed the
"\n"
from the end of one line. That didn’t do anything, though I’m sure removing that was a good idea.I also removed
if (is_single() || is_page()) { }
and now I’m left with:if(!function_exists('dw13')){ function dw13(){ global $post; if(get_post_meta($post->ID, 'mp3_id', true)) { if (intval(get_post_meta($post->ID, 'mp3_id', true)) > 0) { $mp3_display = wp_dlm_parse_downloads('[download id='.get_post_meta($post->ID, 'mp3_id', true).' format="6"]', 2); return apply_filters('the_content', $mp3_display); } } } }
Still not working. My post won’t even save anymore, I just get a white screen of death, lol.
Forum: Fixing WordPress
In reply to: Downgrade from 3.4.2 back to 3.4.1?There’s nothing to be done on that end.
I tested the links with some epub files and it seems that the problem is ALL downloads are being forced, whether I specify that’s what I want or not.
I reverted to the previous version of Download Monitor and I’m still having this issue. I suspect it has something to do with how the plugin interacts with WordPress 3.4.2, but I’m not sure how to safely revert to 3.4.1, so I can’t verify that.
Is anyone else running 3.4.2 running into the issue of downloads being forced?
For the record, this modification didn’t work:
$all_elements = array(contributor());
That would have been too easy, wouldn’t it? It displayed the output of my function, but not with commas or the amperstand.
I know how to modify hunk’s code to list the contents of contributor_name, regardless of the associated contributor_role, but I can’t figure out how to limit the output to only the names with the role ‘Artist’ or how to wrap the output in the link code. I’m still learning how to modify php, so could someone please break this down for me?
Forum: Plugins
In reply to: [Live+Press] [Plugin: Live Press] Compatible with JournalPress?I tried installing this on my new test site just to see how it worked, but the installation seemed to have failed, so I’ve given up on it.
Any idea how to grab the output of my foreach statement and put it into an array to use in your example? My code is looking more like this:
if(!function_exists('contributor')){ function contributor(){ global $post; $Contributors = get_group('Contributor'); foreach($Contributors as $Contributor){ if( in_array('Artist',array_values($Contributor['contributor_role']) ) ) { echo '<a href="'.$Contributor['contributor_link'][1].'">'.$Contributor['contributor_name'][1].'</a>'; } } } }
Just FYI that I do know how to do this using an unordered list; however, there is one place in my template where that simply won’t work. So if there is a way to do this without wrapping it in
<li>
tags, I will be very happy.Thank you!
That gave me the complete list of all genres with counts that seem to match up, yes.
The counts look correct (though what would you do if they weren’t correct?). The skipped genres appeared using the other codes you gave me (well, up to a certain count, anyway). I don’t have any custom post types.
One of the genres it skipped was the largest one I had (with 44 posts).
Odd. I just noticed that it skips a handful of genres in the middle of the list.
That worked like a charm! You are so amazing, thank you!
Strange how I was able to make all the posts appear using all that repeating code, but this code resists me. You would think this would method would have less of a memory strain. Memory is something I know absolutely nothing about, so if you think that’s it, I’m at a loss.