jumbolove
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Widen the content boxIt means there is an error in your code somewhere. If you didn’t get that error before, make sure that in this segment you balance all the braces and end the argument with a semi-colon.
If it still doesn’t work, you can paste in the code of the whole file using .
Forum: Themes and Templates
In reply to: Widen the content boxIf you are looking for a solution for the whole website, you can create override a function with one of your own.
In functions.php paste in:
<?php if ( ! isset( $content_width ) ) $content_width = 1024; ?>
I set it to 1024, you can change it to whatever width you’d like.
Let me know if this helps.
Forum: Themes and Templates
In reply to: Twenty Eleven Child theme looping 0 blog postsConfirming my proposed solution.
I copied index.php over to my child theme and modded it for my site, then set posts->blog in Admin panel. I got my desired page with all the posts.
I then took my page-blog.php file, re-assigned it to a different page, and modified the query for a category using
<?php query_posts('cat=8'); ?>
before my loop was called.
Everything seems to be working well now.
Thanks for helping the newbie!
Forum: Themes and Templates
In reply to: Twenty Eleven Child theme looping 0 blog postsThank you both for the help. query_posts did work.
If I may ask, I tried passing
<?php query_posts( ); ?>
without any arguments and I ended up with my blank home page.I then inserted
<?php query_posts( 'posts_per_page=5' ); ?>
and actually got the posts I was looking for.I’m curious as to why the query_posts would pass my ‘home’ page. Any ideas?
Also if I may ask, since this method calls another SQL query/queries, if I changed from hand coding my template to changing the Admin reader settings to posts->blog and then modifying my index page to suit my needs, if that seems like a viable alternative?
Forum: Themes and Templates
In reply to: Twenty Eleven Child theme looping 0 blog postsSo I may have figured out a band-aid solution.
In WP Admin I went to Settings/Reading.
There is a section “Front page displays”
For me I set a static front page of Home and a Posts page of Blog.I’m guessing that overrides my template file and uses some WordPress sorcery to drop in the posts.
I will be putting posts on a different page with a category condition, so I will post anything I find about the empty posts problem if it repeats itself.
Forum: Themes and Templates
In reply to: Twenty Eleven Child theme looping 0 blog postsSo i removed
<?php the_post(); ?>
and inside my content div I get:
article div
entry header
entry content div
entry meta footer
Reply sectionand none of it is populated with anything. I confirmed by turning CSS off and had nothing aside from my header and footer outside the code of focus.
It appears to have run the loop, not put any imformation and just left a shell of a post.
What if I were to try some loop snippets from Twenty Ten? I read the file organization is different between Eleven and Ten for post categories, so I’m unsure if that will be a reasonable solution.
Forum: Themes and Templates
In reply to: Twenty Eleven Child theme looping 0 blog postsSure,
All of my “content-*.php” files are calling Twenty Eleven files. I have made no changes yet.