stevenknight
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Hacks
In reply to: Standard format category/page navigation issuesThank you, that worked great.
Now to get ajax ‘Load more posts’ to work with queries!
Marked as resolved…
Forum: Hacks
In reply to: Custom content above title outside the_contentI worked it out, if anyone else comes across this issue I worked it out by creating the custom field then using php if else to determine if there’s a value, and what it should output if there is or isn’t.
<header> <span class="blog-head"></span> <?php $values = get_post_custom_values("top-content"); if (isset($values[0])) { ?> <div id="top-content"> <?php $values = get_post_custom_values("top-content"); echo $values[0]; ?> </div> <h2 class="top"> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a> </h2> <?php } else { ?> <h2> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a> </h2> <?php } ?> </header><!-- header ends -->Forum: Hacks
In reply to: Custom content above title outside the_contentThank you, I tried to work with Custom Fields for about two hours a few days ago but could not good it to format how I wanted, and when I added the meta tags into my template, all custom fields were published such as Disqus ID, and the Custom Field section in Edit Post would not work properly. I’ll try again.
Viewing 3 replies - 1 through 3 (of 3 total)