juliabarry
Forum Replies Created
-
Forum: Plugins
In reply to: [Flickr Justified Gallery] 4.3.1 compatibilityHave you had any luck with pagination or previous/next? Your current setup just looks like a set number of photos per tab…
Forum: Plugins
In reply to: [Flickr Justified Gallery] 4.3.1 compatibilityI just tried to install with 4.3.1 and the initial dynamic page works ok, but the pagination doesn’t work — when you click to see more photos, it just goes to a different, contained slideshow version of all of my photos. Would be awesome if this plugin worked 100% in the newest WordPress version. Fingers crossed it’ll be up and running soon!
Forum: Fixing WordPress
In reply to: custom post template not working with Custom Post Type postsThat helped to get rid of the error, thanks! But now I’m back to the original problem, where the post format is just going to the default. My code for the secondary query is still the same as above. Thanks!
Forum: Fixing WordPress
In reply to: custom post template not working with Custom Post Type postsOk, I’m definitely doing something wrong ??
When I use this secondary query, something weird happens. The URL in the address bar is https://juliabarry.com/webdesign/erin_trahan/erin-trahan/ but I get an error message that says “You tried going to https://juliabarry.com/webdesign/webdesign/erin_trahan/erin-trahan/, and it doesn’t exist. All is not lost! You can search for what you’re looking for.”
Here’s my post template code. Lemme know where I’m going wrong…
<?php /* Template Name Posts: ErinTrahan.com */ $args = array('post_type' => 'erin_trahan','post_count'=> 50); $erin_query = new WP_Query($args); // Instantiates new WP_Query object for Erin Trahan Custom Post Type posts get_header(); // Loads the header.php template. ?> <?php do_atomic( 'before_content' ); // hatch_before_content ?> <div id="content"> <?php do_atomic( 'open_content' ); // hatch_open_content ?> <div class="hfeed"> <?php if ( $erin_query->have_posts() ): while ( $erin_query->have_posts() ): $erin_query->the_post(); ?> <?php do_atomic( 'before_entry' ); // hatch_before_entry ?> <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>"> <?php do_atomic( 'open_entry' ); // hatch_open_entry ?> <div class="post-content"> <?php if ( current_theme_supports( 'get-the-image' ) ) get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'single-thumbnail', 'link_to_post' => false, 'image_class' => 'featured', 'attachment' => false, 'width' => 640, 'height' => 360, 'default_image' => get_template_directory_uri() . '/images/single_image_placeholder.png' ) ); ?> <div class="post-aside"> <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title permalink="0"]' ); ?> <?php echo apply_atomic_shortcode( 'byline_date', '<div class="byline byline-date">' . __( '[entry-published before="Date: "]', 'hatch' ) . '</div>' ); ?> <?php the_field('project_url'); ?> <?php echo apply_atomic_shortcode( 'byline_category', '<div class="byline byline-ategory">' . __( 'Category: [entry-terms taxonomy="category"]', 'hatch' ) . '</div>' ); ?> <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-terms taxonomy="post_tag" before="Tags: "]', 'hatch' ) . '</div>' ); ?> <?php the_field('project_description'); ?> <?php echo apply_atomic_shortcode( 'byline_edit', '<div class="byline byline-edit">' . __( '[entry-edit-link]', 'hatch' ) . '</div>' ); ?> <?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template. ?> </div> <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'hatch' ) ); ?> <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'hatch' ), 'after' => '</p>' ) ); ?> </div><!-- .entry-content --> <?php do_atomic( 'close_entry' ); // hatch_close_entry ?> </div><!-- .post-content --> </div><!-- .hentry --> <?php do_atomic( 'after_entry' ); // hatch_after_entry ?> <!-- ========== ///// BEGIN IMAGE GRID ========== --> <?php query_posts('category_name=ErinTrahan&posts_per_page=10'); ?> <div id="project-images"> <?php while (have_posts()) : the_post(); ?> <div class="left highlight"> <a href="https://juliabarry.com" title="<?php the_field( 'image_title' ); ?>"><img src="<?php the_field( 'project_image' ); ?>" alt="<?php the_field( 'image_alt_info' ); ?>" width="290"></a> </div> <?php endwhile;?> </div> <!-- ========== END IMAGE GRID \\\\\ ========== --> <?php do_atomic( 'after_singular' ); // hatch_after_singular ?> <?php endwhile; ?> <?php endif; ?> </div><!-- .hfeed --> <?php do_atomic( 'close_content' ); // hatch_close_content ?> </div><!-- #content --> <?php do_atomic( 'after_content' ); // hatch_after_content ?> <?php get_footer(); // Loads the footer.php template. ?>
Thanks!!
Forum: Fixing WordPress
In reply to: custom post template not working with Custom Post Type postsThanks, will give it a go and let you know what happens!
Forum: Fixing WordPress
In reply to: Add Read More link next to customized excerptAnyone have any tips on this? Much appreciated!
Forum: Fixing WordPress
In reply to: Display first, second, and third posts as list itemThank you! Knowing the order of ops helped me get things working like this (for anyone else who’s wondering):
<div id="blueberryslider"> <div class="blueberry clear center"> <ul class="slides"> <?php query_posts('category_name=featured&posts_per_page=1&offset=0'); ?> <?php while (have_posts()) : the_post(); ?> <li><a href="<?php the_field('slider_url') ?>" title="<?php the_field( 'slider_video_tagline' ); ?>" rel="prettyPhoto"><img src="<?php the_field( 'slider_image' ); ?>" alt="<?php the_field( 'slider_video_title' ); ?>" width="900" height="300"></a></li> <?php endwhile;?> <?php query_posts('category_name=featured&posts_per_page=1&offset=1'); ?> <?php while (have_posts()) : the_post(); ?> <li><a href="<?php the_field('slider_url') ?>" title="<?php the_field( 'slider_video_tagline' ); ?>" rel="prettyPhoto"><img src="<?php the_field( 'slider_image' ); ?>" alt="<?php the_field( 'slider_video_title' ); ?>" width="900" height="300"></a></li> <?php endwhile;?> <?php query_posts('category_name=featured&posts_per_page=1&offset=2'); ?> <?php while (have_posts()) : the_post(); ?> <li><a href="<?php the_field('slider_url') ?>" title="<?php the_field( 'slider_video_tagline' ); ?>" rel="prettyPhoto"><img src="<?php the_field( 'slider_image' ); ?>" alt="<?php the_field( 'slider_video_title' ); ?>" width="900" height="300"></a></li> <?php endwhile;?> </ul> </div> </div>
Much appreciation for your tip!!
Forum: Fixing WordPress
In reply to: display image from custom fieldWhoa, looks like something weird happened with my last post. I was asking about using php inside of
<li>
(list items).Forum: Fixing WordPress
In reply to: display image from custom fieldAlso having the same problem trying to use these sort of php calls inside of
- . I don’t know enough about php — is this not possible? How can I used a slider that relies on ul’s and call in dynamic content from posts?
Extra thanks!!
Forum: Fixing WordPress
In reply to: display image from custom fieldEr, one more question along the same lines.
I’m trying to add a Read More link, and I see that the theme I’m building on has changed excerpt_more to path_excerpt_more.
But when I try to use that like this:
<div class="entry-summary clear"> <?php the_excerpt(); ?><?php path_excerpt_more(); ?> </div><!-- .entry-summary -->
…nothing happens. What else do I have to do to get it print the link?
I also tried just hard coding it in, but the link just refers back to the homepage, rather than connecting to the blogpost’s URL:
<?php the_excerpt(); ?><a href="<?php get_permalink($post->ID) ?>">Read more</a>
We’re not using <!–more–> to create the excerpt, but rather the excerpt meta box on the post page, if that makes a difference.
Thanks!
Forum: Fixing WordPress
In reply to: display image from custom fieldYou are my hero. Thanks!
Forum: Fixing WordPress
In reply to: display image from custom fieldThanks for the reply! That worked like a charm, and I love how simple it is!
But now I’m having a problem where the “rel=prettyPhoto” value that cues a js popup isn’t working for some reason. I’m using
<a href="<?php the_field('link_url') ?>">
to pull in the link, which still does seem to be working (it’s just opening in a new window instead of cuing the popup).Do you know what’s interfering/what I did wrong?
Thanks!!
Forum: Fixing WordPress
In reply to: NAV php menu disappears in IE7 and IE8Actually, it turned out that my renderer just wasn’t showing it right, and the menu *does* work in IE. I was able to fix other issues through CSS tweaks. Thanks guys!
Forum: Fixing WordPress
In reply to: NAV php menu disappears in IE7 and IE8Yeah, it sure seems like IE isn’t responding correctly to wp_nav_menu, but it’s also broken even in newer versions, so I’m really not sure where the issue is.
Do you have any resources I can read about the li > ul issue?
Should I replace wp_nav_menu with an older function?
Blargh. Thanks for your help!
Forum: Fixing WordPress
In reply to: NAV php menu disappears in IE7 and IE8That’s what I thought. So how can I create a user so you guys can help? Much appreciated!