David Yeiser
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast SEO] Twitter OG Image not working for large filesAh perfect, thanks for that.
Is there a reason why the plugin doesn’t use WP resizing functions to convert oversized images to a valid size?
Forum: Themes and Templates
In reply to: dynamic_sidebar WoesDisregard the previous post. It was something else.
Forum: Themes and Templates
In reply to: dynamic_sidebar WoesThis method of hiding widget sidebars is very cool. However it seems to throw an error in my post navigation. Instead of the post navigation navigating through all of the posts, it is stuck on two specific posts. Even if I’m on one of the two posts that it’s stuck on, it still shows that post as the next one to navigate to.
When I remove:
function is_sidebar_active( $index = 1){ $sidebars = wp_get_sidebars_widgets(); $key = (string) 'sidebar-'.$index; return (isset($sidebars[$key])); }
the post navigation works fine.
Is there anything in this method that would cause this? Or do you think I’ve made an error elsewhere.
Thanks!
Forum: Your WordPress
In reply to: New WordPress Theme: Trevilian WayCathy,
First, thank you for your very kind comments, I’m glad that you like it.
I designed the single post view first, so it drove the design of the whole thing. I chose to do this because I figured most people would be using this for their blog. Hence, the majority of the content would be in post form.
As far as pages go, you can use the same image class names as you would in the posts. However, if you create a lot of pages the navigation in the top right will begin to get cluttered. But it’s not too hard to remove that option and replace it with something else. (Let me know if you want to know how to do that.)
Thanks again!
-DavidForum: Themes and Templates
In reply to: Making bullet show in IE?Palmettostar,
Unfortunately
:before
and:after
don’t work in IE.Your best bet is to make an image of the right angle double quote and use
background-image
for IE.Forum: Fixing WordPress
In reply to: Adding HOME page to PAGE LISTTry doing this:
Find the code below in the widgets.php file, it should be towards the end, mine was directly underneath the commented line that said “Standard Widgets”.
function widget_pages($args) { extract($args); $options = get_option('widget_pages'); $title = empty($options['title']) ? __('Pages') : $options['title']; echo $before_widget . $before_title . $title . $after_title . "<ul>\n"; wp_list_pages("title_li="); echo "</ul>\n" . $after_widget; }
Now try adding this line:
function widget_pages($args) { extract($args); $options = get_option('widget_pages'); $title = empty($options['title']) ? __('Pages') : $options['title']; echo $before_widget . $before_title . $title . $after_title . "<ul>\n";
echo '<li><a href="https://homepagelink.com">Home</a></li>';
wp_list_pages("title_li="); echo "</ul>\n" . $after_widget; }
I don’t have any way to test this right now, so it may not work. Let me know!
Forum: Themes and Templates
In reply to: How to put comments on the main (index.php) page?Are you wanting to display the most recent comments across the site? Or do you want to display the associated comments with each post on the front page without having to click on a “Comments” link?
Forum: Themes and Templates
In reply to: Bug in handling of the_excerpt?I would recommend organizing it this way:
<?php $posts = get_posts("numberposts=1"); foreach($posts as $post) : setup_postdata($post); ?> FORMAT SINGLE POST IN FULL (Use the_title(), the_content(), etc. since we used setup_postdata().) <?php endforeach; ?> <?php $posts = get_posts("numberposts=5&offset=1"); foreach($posts as $post) : setup_postdata($post); ?> FORMAT OTHER FIVE EXCERPT POSTS (Use the_title(), the_excerpt(), etc. since we used setup_postdata().) <?php endforeach; ?>
With my WordPress install (2.1.3) the database doesn’t produce any errors if there aren’t enough posts to fulfill the get_posts() query. If it requests 5 and there’s only 3, then it just shows those three.
Let me know if this works for you.
Forum: Fixing WordPress
In reply to: Adding HOME page to PAGE LISTWell, an easy way to add a link to the home page would be:
<ul> <li><a href="https://homepagelink.com">Home</a></li> <?php wp_list_pages('title_li='); ?> </ul>
Do you have an example site to link? Have you looked at next_post_link() and previous_post_link()?
Forum: Themes and Templates
In reply to: Sidebar Pushed to Bottom in IEMany times it will be because you haven’t specified styling on an element that doesn’t get used much, such as a blockquote. The default CSS that the browser assigns will sometimes break your layout.
Also, the culprit could be the IE 2px bug. (Do a Google search if you’re not familiar.)
Hope this helps you in the future!
Forum: Themes and Templates
In reply to: Need some templating helpHey partisanentity,
That’s a Firefox issue. Firefox puts gray dotted borders around links when they are active. Check out this fix:
Forum: Themes and Templates
In reply to: Page Template: Posts by categoryI would look at get_posts() and query_posts()
You can also name the .PHP files so that they automatically correspond to certain categories.
Forum: Themes and Templates
In reply to: How to get a quote-sign (‘) in a theme php-functionBut without the
\'
, just'
Forum: Themes and Templates
In reply to: How to get a quote-sign (‘) in a theme php-functionTry using double quotes instead of single quotes, although I can’t remember if this works or not. Let me know if it does.
<?php wp_list_pages("title_li=<h2>Pagina\'s</h2>"); ?>