Forum Replies Created

Viewing 9 replies - 16 through 24 (of 24 total)
  • Thread Starter htausch

    (@htausch)

    Figured it out. Added this css:
    input.skill1, input.skill2, input.skill3, input.skill4 {
    visibility: hidden;
    }
    .unique-number {
    color: #ffffff;
    font: bold 16px Arial;
    height: 21px;
    margin-left: 15px;
    margin-top: 21px;
    padding: 0;
    position: absolute;
    text-align: center;
    vertical-align: middle;
    width: 36px;
    }
    Then changed the following to the about_us.php file found in the sections folder:

    echo '<div class="skill-count"><div class="unique-number">1</div>';

    Thread Starter htausch

    (@htausch)

    According to this the jetpack_has_site_logo(); is what I need to accomplish this.

    Thread Starter htausch

    (@htausch)

    The id of the static front page saved as an option name page_on_front.

    Once you have it call get_post_field().

    $front_page_id = get_option('page_on_front')
    $content = get_post_field('post_content', $front_page_id );
    echo $content;
    Thread Starter htausch

    (@htausch)

    SOLUTION:

    <?php $dyno_images = rwmb_meta( 'gallery-images', 'type=image_advanced&size=thumbnail' );
    							  $dyno_images_lrg = rwmb_meta( 'gallery-images', 'type=plupload_image&size=full' ); ?>
                            <?php
    
                                    foreach ( $dyno_images_lrg as $dyno_image_lrg )
                                    {
    									foreach ( $dyno_images as $dyno_image ) {
    
                                    echo '<figure class="gallery-item">
    										<div class="gallery-icon landscape">
    											<a href="'.$dyno_image_lrg['url'].'" class="fancybox image" rel="gallery">
    												 <img src="'.$dyno_image['url'].'" aria-describedby="gallery-1-584" class="attachment-full">
    											</a>
    										</div>
    									  </figure>';
    
                                    }}
                                    ?>
    Thread Starter htausch

    (@htausch)

    SOLUTION:

    flush_rewrite_rules(); 
    
    function change_slug_of_post_type_portfolio() {
        $args = get_post_type_object("portfolio");
    	$args->rewrite["slug"] = "homepage";
    	register_post_type($args->name, $args);
    }
    add_action('init', 'change_slug_of_post_type_portfolio', 20);

    Thread Starter htausch

    (@htausch)

    It grabs the contents of the post and displays as many posts as there are of that custom post type. Here’s the full code, I probably should have done that from the beginning:

    <?php
               $args = array( 'post_type' => 'team-members' );
               $loop = new WP_Query( $args );
               while ( $loop->have_posts() ) : $loop->the_post(); ?>
    
    <div class="parent">
         <div class="ignore">
                   <img src="<?php get_field('home_image'); ?>
                             <div class="text">
                                 <h3><?php the_title(); ?></h3>
                             </div>
                   </div>
    </div>
    <?php endwhile; ?>
    Thread Starter htausch

    (@htausch)

    I can use jquery, which is probably best because it’s going to be stuck inside a loop.

    <?php
               $args = array( 'post_type' => 'team-members' );
               $loop = new WP_Query( $args );
               while ( $loop->have_posts() ) : $loop->the_post(); ?>

    I can find plenty of solutions for using jquery to do this but can’t figure out how to incorporate the php get_field names.

    Thread Starter htausch

    (@htausch)

    Turns out it was an error in my single.php. I didn’t have a correct while statement for pulling the post content.

    Thread Starter htausch

    (@htausch)

    I was able to fix it! After I updated the .htaccess file I had the idea to switch to twenty fourteen again and see if that still worked. It didn’t. So I decided to go through the troubleshooting process again. deactivating all the plugins fixed the issue this time! So I went through and reactivated them one by one until I found the culprit.

    So it looks like the issue was a bad .htaccess file AND a conflicting plugin.

Viewing 9 replies - 16 through 24 (of 24 total)