kmaier
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: understanding custom fieldsthanks simplistik that worked just like what i was trying to do for the last hour or so…ha
really appreciate it
Forum: Fixing WordPress
In reply to: understanding custom fieldscan 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.
Forum: Fixing WordPress
In reply to: understanding custom fieldsgot it!!!
<?php $vision = get_post_meta(43, ‘home_vision’, true); ?>
<p><?php echo $vision; ?> – hi</p>Thanks Jessn!~
Forum: Fixing WordPress
In reply to: understanding custom fieldsi added it to my home.php but i am not seeing anything. do i need to target a specific ID? i’m using pages.
Forum: Fixing WordPress
In reply to: <body class=””>That did it! thanks
Forum: Fixing WordPress
In reply to: <body class=””>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
Forum: Fixing WordPress
In reply to: <body class=””>cool, i see it in there!
Forum: Fixing WordPress
In reply to: <body class=””>hmm i’m getting an error
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!
Forum: Fixing WordPress
In reply to: <body class=””>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!
Forum: Fixing WordPress
In reply to: blog posts and page contentthis page helped!
https://codex.www.ads-software.com/Pages
i just copied in the bottom portion of code and voila.
Forum: Fixing WordPress
In reply to: blog posts and page contentcan 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 »', '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 »', '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(__('« Older Entries', 'minimalism')) ?></div> <div class="alignright"><?php previous_posts_link(__('Newer Entries »', '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>
Forum: Fixing WordPress
In reply to: blog posts and page content??
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.
Forum: Fixing WordPress
In reply to: mod rewrite and friendly URL’sgot 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/
Forum: Themes and Templates
In reply to: author.php doesn’t appear in templatei got it esmi thanks! i had wrong path in there from moving it to a new server.
Forum: Fixing WordPress
In reply to: Displaying Tags in a pageperfect thanks!