Skip to main content
deleted 17 characters in body
Source Link
Johansson
  • 15.4k
  • 11
  • 43
  • 79

I am creating a custom word press theme and i am little stuck in one situation, what i want is to echo the specific values of an array in the form of bordered tables. For example i want to display | location | qualification | date |

here below is my code

 <td class="row-2 row-email"><?php  $release_edu_qual = get_post_meta( get_the_ID(), '_candidate_education', true );
                      print_r($release_edu_qual); 
 ?></td>

and this is the output of the above code: Array ( [0] => Array ( [location] => Stanford University [qualification] => School of Arts & Sciences [date] => 2012-2015 [notes] => Maximus faucibus non non nibh. Cras luctus velit et ante vehicula, sit amet commodo magna eleifend. Fusce congue ante id urna porttitor luctus. ) [1] => Array ( [location] => University of Pennsylvania [qualification] => School of Design [date] => 2010-2012 [notes] => Phasellus vestibulum metus orci, ut facilisis dolor interdum eget. Pellentesque magna sem, hendrerit nec elit sit amet, ornare efficitur est. ) [2] => Array ( [location] => Massachusetts Institute of Technology [qualification] => [date] => 2006-2010 [notes] => Suspendisse lorem lorem, aliquet at lectus quis, porttitor porta sapien. Etiam ut turpis tempor, vulputate risus at, elementum dui. Etiam faucibus. ) )

enter code here

Array ( [0] => Array ( [location] => Stanford University [qualification] => School of Arts & Sciences [date] => 2012-2015 [notes] => Maximus faucibus non non nibh. Cras luctus velit et ante vehicula, sit amet commodo magna eleifend. Fusce congue ante id urna porttitor luctus. ) [1] => Array ( [location] => University of Pennsylvania [qualification] => School of Design [date] => 2010-2012 [notes] => Phasellus vestibulum metus orci, ut facilisis dolor interdum eget. Pellentesque magna sem, hendrerit nec elit sit amet, ornare efficitur est. ) [2] => Array ( [location] => Massachusetts Institute of Technology [qualification] => [date] => 2006-2010 [notes] => Suspendisse lorem lorem, aliquet at lectus quis, porttitor porta sapien. Etiam ut turpis tempor, vulputate risus at, elementum dui. Etiam faucibus. ) )

I am creating a custom word press theme and i am little stuck in one situation, what i want is to echo the specific values of an array in the form of bordered tables. For example i want to display | location | qualification | date |

here below is my code

 <td class="row-2 row-email"><?php  $release_edu_qual = get_post_meta( get_the_ID(), '_candidate_education', true );
                      print_r($release_edu_qual); 
 ?></td>

and this is the output of the above code: Array ( [0] => Array ( [location] => Stanford University [qualification] => School of Arts & Sciences [date] => 2012-2015 [notes] => Maximus faucibus non non nibh. Cras luctus velit et ante vehicula, sit amet commodo magna eleifend. Fusce congue ante id urna porttitor luctus. ) [1] => Array ( [location] => University of Pennsylvania [qualification] => School of Design [date] => 2010-2012 [notes] => Phasellus vestibulum metus orci, ut facilisis dolor interdum eget. Pellentesque magna sem, hendrerit nec elit sit amet, ornare efficitur est. ) [2] => Array ( [location] => Massachusetts Institute of Technology [qualification] => [date] => 2006-2010 [notes] => Suspendisse lorem lorem, aliquet at lectus quis, porttitor porta sapien. Etiam ut turpis tempor, vulputate risus at, elementum dui. Etiam faucibus. ) )

enter code here

I am creating a custom word press theme and i am little stuck in one situation, what i want is to echo the specific values of an array in the form of bordered tables. For example i want to display | location | qualification | date |

here below is my code

 <td class="row-2 row-email"><?php  $release_edu_qual = get_post_meta( get_the_ID(), '_candidate_education', true );
                      print_r($release_edu_qual); 
 ?></td>

and this is the output of the above code:

Array ( [0] => Array ( [location] => Stanford University [qualification] => School of Arts & Sciences [date] => 2012-2015 [notes] => Maximus faucibus non non nibh. Cras luctus velit et ante vehicula, sit amet commodo magna eleifend. Fusce congue ante id urna porttitor luctus. ) [1] => Array ( [location] => University of Pennsylvania [qualification] => School of Design [date] => 2010-2012 [notes] => Phasellus vestibulum metus orci, ut facilisis dolor interdum eget. Pellentesque magna sem, hendrerit nec elit sit amet, ornare efficitur est. ) [2] => Array ( [location] => Massachusetts Institute of Technology [qualification] => [date] => 2006-2010 [notes] => Suspendisse lorem lorem, aliquet at lectus quis, porttitor porta sapien. Etiam ut turpis tempor, vulputate risus at, elementum dui. Etiam faucibus. ) )

Source Link

get specific value of a array | PHP

I am creating a custom word press theme and i am little stuck in one situation, what i want is to echo the specific values of an array in the form of bordered tables. For example i want to display | location | qualification | date |

here below is my code

 <td class="row-2 row-email"><?php  $release_edu_qual = get_post_meta( get_the_ID(), '_candidate_education', true );
                      print_r($release_edu_qual); 
 ?></td>

and this is the output of the above code: Array ( [0] => Array ( [location] => Stanford University [qualification] => School of Arts & Sciences [date] => 2012-2015 [notes] => Maximus faucibus non non nibh. Cras luctus velit et ante vehicula, sit amet commodo magna eleifend. Fusce congue ante id urna porttitor luctus. ) [1] => Array ( [location] => University of Pennsylvania [qualification] => School of Design [date] => 2010-2012 [notes] => Phasellus vestibulum metus orci, ut facilisis dolor interdum eget. Pellentesque magna sem, hendrerit nec elit sit amet, ornare efficitur est. ) [2] => Array ( [location] => Massachusetts Institute of Technology [qualification] => [date] => 2006-2010 [notes] => Suspendisse lorem lorem, aliquet at lectus quis, porttitor porta sapien. Etiam ut turpis tempor, vulputate risus at, elementum dui. Etiam faucibus. ) )

enter code here