Forum Replies Created

Viewing 15 replies - 31 through 45 (of 49 total)
  • Thread Starter kmaier

    (@kmaier)

    thanks simplistik that worked just like what i was trying to do for the last hour or so…ha

    really appreciate it

    Thread Starter kmaier

    (@kmaier)

    can i have the fields have the same name but generate different values based off whats in the admin?

    <?php if (
    $sideHeader = get_post_meta(2, 'side_header', true)) {
    echo $sideHeader;
    } elseif (
    $sideHeader = get_post_meta(5, 'side_header', true)) {
    echo $sideHeader;
    } elseif (
    $sideHeader = get_post_meta(8, 'side_header', true)) {
    echo $sideHeader;
    } elseif (
    $sideHeader = get_post_meta(10, 'side_header', true)) {
    echo $sideHeader;
    } elseif (
    $sideHeader = get_post_meta(12, 'side_header', true)) {
    echo $sideHeader;
    } else {
    echo '';
    }
    ?>

    whatever i do it only comes up with the first one in the statement on all pages.

    Thread Starter kmaier

    (@kmaier)

    got it!!!

    <?php $vision = get_post_meta(43, ‘home_vision’, true); ?>
    <p><?php echo $vision; ?> – hi</p>

    Thanks Jessn!~

    Thread Starter kmaier

    (@kmaier)

    i added it to my home.php but i am not seeing anything. do i need to target a specific ID? i’m using pages.

    Thread Starter kmaier

    (@kmaier)

    That did it! thanks

    Thread Starter kmaier

    (@kmaier)

    Hi Mike

    do you know why i would be getting the following within the admin with that function?

    Warning: Cannot modify header information – headers already sent by (output started at /home/paragon/public_html/dev/wp-content/themes/paragon/functions.php:25) in /home/paragon/public_html/dev/wp-includes/functions.php on line 784

    Warning: Cannot modify header information – headers already sent by (output started at /home/paragon/public_html/dev/wp-content/themes/paragon/functions.php:25) in /home/paragon/public_html/dev/wp-includes/functions.php on line 785

    Thread Starter kmaier

    (@kmaier)

    cool, i see it in there!

    Thread Starter kmaier

    (@kmaier)

    hmm i’m getting an error

    link to pge

    i added the function to the file like this

    <?php
    
    add_filter('body_class', 'my_body_class', 10, 4);
    function my_body_class($classes, $class, $comment_id, $post_id) {
        if (is_page()) {
            $classes[] = sanitize_title_with_dashes(get_the_title($post_id));
        }
        return $classes;
    }
    ?>

    thanks!

    Thread Starter kmaier

    (@kmaier)

    bummer, just seeing if i could get the page name associated to it or make it custom. no biggie, i can work with it. it is just for css purposes

    found that originally here from one of your other posts.
    https://quirm.net/2009/08/07/changing-headers-with-wordpress-body_class/

    thanks!

    Thread Starter kmaier

    (@kmaier)

    this page helped!

    https://codex.www.ads-software.com/Pages

    i just copied in the bottom portion of code and voila.

    Thread Starter kmaier

    (@kmaier)

    can anyone help me out? i’ve been trying to find something int he support to single out pages but must not be in the right area…

    here is the code i have for the top of the page where i would just like the about content to display:

    <div id="casestudy-copy">
    
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<div class="post" id="post-<?php the_ID(); ?>">
    
    		<h2 class="case"><?php the_title(); ?></h2>
    
    			<div class="entry">
    				<?php the_content('<p class="serif">' . __('Read the rest of this page &raquo;', 'minimalism') . '</p>'); ?>
    
    				<?php wp_link_pages(array('before' => '<p><strong>' . __('Pages:', 'minimalism') . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    
    			</div>
    		</div>
    		<?php endwhile; endif; ?>
    
    		</div>
    
    		<div id="casestudy-movie"></div>
    
    		<div id="casestudy-bar"></div>
    
    	</div>

    and here is where i would like the posts to pull into:

    <div id="content" class="narrowcolumn">
    
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'minimalism'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>
    				<small><?php the_time(__('F jS, Y', 'minimalism')) ?> by <?php the_author() ?></small>
    
    				<div class="entry">
    					<?php the_content(__('Read the rest of this entry &raquo;', 'minimalism')); ?>
    					<script src="https://w.sharethis.com/button/sharethis.js#publisher=07d1d746-525b-4900-a217-3e571d7cacda&type=website" type="text/javascript"></script>
    				</div>
    
    				<p class="postmetadata"><?php the_tags(__('Tags:', 'minimalism') . ' ', ', ', '<br />'); ?> <?php printf(__('Posted in %s', 'minimalism'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'minimalism'), '', ' | '); ?>  <?php comments_popup_link(__('No Comments »', 'minimalism'), __('1 Comment »', 'minimalism'), __('% Comments »', 'minimalism'), '', __('Comments Closed', 'minimalism') ); ?></p>
    
    			</div>
    
    		<?php endwhile; ?>
    
    		<div class="navigation">
    			<div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries', 'minimalism')) ?></div>
    			<div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;', 'minimalism')) ?></div>
    		</div>
    
    	<?php else : ?>
    
    		<h2 class="center"><?php _e('Not Found', 'minimalism'); ?></h2>
    		<p class="center"><?php _e('Sorry, but you are looking for something that isn’t here.', 'minimalism'); ?></p>
    		<?php include (TEMPLATEPATH . "/searchform.php"); ?>
    
    	<?php endif; ?>
    
    	</div>

    Thread Starter kmaier

    (@kmaier)

    ??

    i am just wanting the posts to stay on the bottom and have the page content on top. but it just pulls the page content.

    https://produce-able.com/about/

    Thread Starter kmaier

    (@kmaier)

    got it! partially…

    https://codex.www.ads-software.com/Using_Permalinks

    although is there ways to remove part of a URL ? like the “uncategorized”

    https://www.sixteenfifty.com/uncategorized/doodle-a-poodle-today/

    i got it esmi thanks! i had wrong path in there from moving it to a new server.

    Thread Starter kmaier

    (@kmaier)

    perfect thanks!

Viewing 15 replies - 31 through 45 (of 49 total)