rogersundstrom
Forum Replies Created
-
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] find() from two fields in same podsThanks @sc0ttkclark
$params = array( 'limit' => -1, 'where' => 't.eme_band = 1', ); $bandinfo->find( $params );Did the trick. How can I sort it in Swedish alphabetical order?
We have åäö in our alphabet, now åä comes behind a and ö comes behind o- This reply was modified 3 years, 3 months ago by rogersundstrom.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] find() from two fields in same podsForum: Plugins
In reply to: [Pods - Custom Content Types and Fields] find() from two fields in same podsHi @pdclark
Your example should do the thing but of some reasons I only see 15 of 692 rows.
Strange…Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] find() from two fields in same podsHi Jory
Unfortunately, I was probably a little unclear and I guess I don’t fully understand my own code 🙂
I think I understand now that $bandinfo->find(‘name ASC’, -1); only sort data ascending.
What I want is only to get data from my array if $bandinfo->field(’eme_band’) is equal with value 1.
$bandinfo->field(’eme_band’) gives me value of either 0 or 1.
Thanks
- This reply was modified 3 years, 3 months ago by rogersundstrom.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Pods Shortcode and data arrayAhh, thanks Paul for the information!
I didn’t had the correct formatting for the shortcodes when I tested this within the data array. Many thanks for your exempel, it opened up my eyes 🙂
Thanks for you answer.
When I got this first time I changed memory to 512 but that didn’t help.But today I saw on my web hotel in cpanel settings for php memory. I changed that to 512 and now I can manage my pod.
Forum: Fixing WordPress
In reply to: div formatHere is the working code 🙂
<?php $bands = array(); ?> <?php foreach ( $bandinfo_data[0] as $bandsattning => $bandinfo ) : ?> <?php foreach ( $bandinfo as $band ) { if ( !isset( $bands[ $band[ 'band1' ] ] ) ) $bands[ $band[ 'band1' ] ] = array(); $bands[ $band[ 'band1' ] ][] = $band; } ?> <?php endforeach; ?> <?php foreach ( $bands as $group => $band_group ) { ?> <h3><?php echo $group; ?></h3> <div> <?php foreach ( $band_group as $band ) { ?> <?php echo $band[ 'lineup' ]; ?> <?php echo $band[ 'year' ]; ?><br> <?php } ?> </div> <?php } ?>Forum: Fixing WordPress
In reply to: div formatIn this case Band1 have 6 lineups
and Band2-Band5 have 1 lineupNow he list bands more than one and in a weird order.
Forum: Fixing WordPress
In reply to: div formatDidn’t work out. Now I get this
Band1
<div>
Lineupx Yearx
</div>Band1
<div>
Lineupx Yearx
Lineupx Yearx
</div>Band1
<div>
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
</div>Band1
<div>
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
</div>Band1
<div>
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
</div>Band1
<div>
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
</div>Band1
<div>
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
</div>Band2
<div>
Lineupx Yearx
</div>Band1
<div>
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
</div>Band2
<div>
Lineupx Yearx
</div>Band3
<div>
Lineupx Yearx
</div>Band1
<div>
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
</div>Band2
<div>
Lineupx Yearx
</div>Band3
<div>
Lineupx Yearx
</div>Band4
<div>
Lineupx Yearx
</div>Band1
<div>
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
Lineupx Yearx
</div>Band2
<div>
Lineupx Yearx
</div>Band3
<div>
Lineupx Yearx
</div>Band4
<div>
Lineupx Yearx
</div>Band5
<div>
Lineupx Yearx
</div>Forum: Fixing WordPress
In reply to: div formatThanks Scott 🙂
It didn’t work. Now I got </div> after first lineup every new BandxForum: Fixing WordPress
In reply to: div formatThat plugin with 5M+ downloads don’t help me right now 🙂
I´m working with pods now and as Scott says my line is malformed and invalid. So with correct code I´m on…Forum: Fixing WordPress
In reply to: div formatHi Scott,
How to do it right then?I want this result
Band1
<div>
lineup1 year1
lineup2 year2
lineup3 year3
</div>Band2
<div>
lineup1 year1
lineup2 year2
lineup3 year3
</div>Instead of this
Band1
lineup1 year1
lineup2 year2
lineup3 year3Band2
lineup1 year1
lineup2 year2
lineup3 year3Forum: Fixing WordPress
In reply to: div formatCan be so, but I think Pods are well used and popular plugins.
http://wordpress.org/extend/plugins/pods/I see I have one “)” to much in that line and have removed it but with same result.
I think I doing something wrong here
for ( $i = 0; $i < $max; $i++) $bandinfo as $infoband :
$infoband = $bandinfo[$i];
?>Forum: Fixing WordPress
In reply to: div formatParse error: syntax error, unexpected T_AS in /home/angelita/public_html/eme/eme/wp-content/plugins/pods/components/Pages.php(480) : eval()’d code on line 119
and line 119 are “for ( $i = 0; $i < $max; $i++) $bandinfo as $infoband )” :