emma_08
Forum Replies Created
-
got it ??
Pretty basic, but my beginning ??<?php echo pods( ‘portfolio’, array( ‘limit’ => 30, ‘orderby’ => ‘date DESC’) )->template( ‘portfolio-list’ ); ?>
That works, thanks so much! Will be changing the way the rest of my pods are outputted.
Now I’m trying to figure out how to incorporate the find() and orderby…Thanks again for your time!!!
I’m pretty new with php, is the following correct? Right now it doesn’t appear at all, even when the field is filled.
`<p><?php if ( ! empty( $website ) ) {$website = get_post_meta($post->ID, ‘website’, true);?>
Website: <a target=”_blank” href=”<?php echo $website; ?>”><?php echo preg_replace(‘|https?://|’, ”, $website ); ?></a>
<?php $site = preg_replace(‘{/$}’, ”, $website);} ?></p>`thanks!
<section class="portfolio_home"> <?php echo do_shortcode ('[pods name="portfolio" template="portfolio-list"]'); ?> </section><!--.portfolio_home-->
Forum: Fixing WordPress
In reply to: Custom-post-type field only display if completedYou’re right, thank you.
Hi,
Thanks for your response. I haven’t set any limits, or at least not intentionally so. Where would the limits be set, as I would want it to be ”no-limits” for now? I have placed it in the code using echo shortcode…Forum: Installing WordPress
In reply to: Exporting MAMP database to hosted serverThank you.
Forum: Installing WordPress
In reply to: Exporting MAMP database to hosted serverThanks for your reply.
So exporting the local database does not ”ruin” the local site and I can continue working on it. Correct?Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Lightbox for Pods Image fieldsHi,
Thanks for your clear response!
Now since the image field is in a custom post type, the “attachment display settings” don’t appear in the media uploader. The other way, as you mentioned, is add it in php, would you know how to place the following into links? I’m pretty new to php and unsure of how to do it. I’m using the image ouput code from the stackoverflow.com link you provided. (p.s. I have 2 sets of images, each have multiple images).<?php
if ( get_post_meta( get_the_ID(), ‘large_image’, false ) ){
$image_array = get_post_meta( get_the_ID(), ‘large_image’, false );
}
if ( $image_array ) {
echo ‘- ‘;
foreach ( $image_array as $image ) {
$class = “post-attachment mime-” . sanitize_title( $image->post_mime_type );
$thumbimg = wp_get_attachment_image( $image[‘ID’], ‘original’);
echo ‘<li class=”‘ . $class . ‘ data-design-thumbnail”>’ . $thumbimg . ”;
}
echo ‘‘;
}
?><?php
if ( get_post_meta( get_the_ID(), ‘small_image’, false ) ){
$image_array = get_post_meta( get_the_ID(), ‘small_image’, false );
}
if ( $image_array ) {
echo ‘- ‘;
foreach ( $image_array as $image ) {
$class = “post-attachment mime-” . sanitize_title( $image->post_mime_type );
$thumbimg = wp_get_attachment_image( $image[‘ID’], ‘original’);
echo ‘<li class=”‘ . $class . ‘ data-design-thumbnail”>’ . $thumbimg . ”;
}
echo ‘‘;
}
?>Thanks again,
Emma