wpismypuppet
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Images not showing up from images fileYou are welcome… glad I could at least point you in the right direction 🙂
Forum: Fixing WordPress
In reply to: How to separate sidebar from 1 to two sides?No offense, but with a question like this, you’ll be waiting a long time for an answer. Showing a picture is helpful, but meaningless if we don’t know:
a) your skill level – for instance, do you know CSS? HTML? PHP?
b) what theme you are using – your own theme? Purchased? Free?
c) and just plain more informationAsking such a vague question and waiting for someone to “give” you the solution is not usually a good idea. People on this forum want to help others learn, not do the work for them. Give more information and we’ll see if we can help.
You’ll want to read up on this page:
http://codex.wordpress.org/Post_Thumbnails
and follow the directions for adding featured image support. It also has examples such as:
// check if the post has a Post Thumbnail assigned to it. if ( has_post_thumbnail() ) { the_post_thumbnail(); }to actually place the image on the page. You’ll want to wrap that image in an anchor tag with the_permalink() to make it clickable, so it will take you to the post it’s attached to.
Forum: Themes and Templates
In reply to: Creating Page templateIt appears you are correct. How annoying…
Forum: Themes and Templates
In reply to: Creating Page templateYou’ll want to edit or create a file called page.php and make all your changes there. Pages will use page.php first, then default to index.php if page.php doesn’t exist. index.php is what posts (and everything else unless otherwise specified) uses. Check out the hierarchy here:
http://codex.wordpress.org/Template_Hierarchy
You don’t need a page template if you want to affect all pages… just a page.php file. If you want to target specific pages, then you’ll need a page template. Good luck.
Forum: Fixing WordPress
In reply to: How to list all root pages and child pages of current page?Good find… and clean code. I like it! Glad it all worked out. You should mark this as resolved so people know you’re all set.
Forum: Fixing WordPress
In reply to: YoutubeYou are welcome…
Forum: Fixing WordPress
In reply to: Can't name page as I want, and unwanted redirect.It appears that rss is reserved. If you type the http://www.domain.com/rss you are redirected to http://www.domain.com/feed. I tried, on a fresh install, to create a page called rss and I receive the same issue as you describe.
Forum: Fixing WordPress
In reply to: Blog page not showing postsGlad you were able to solve the issue! You should mark this as “resolved” so other people know it’s fixed. Thanks.
Forum: Fixing WordPress
In reply to: How to add a rel attribute to wp_get_categories a tagsIf you are using Twitter Bootstraps, then you already have jQuery enabled and ready to do. Technically, you have that with WordPress anyway. Since you want to add the category title as a title attribute, you’ll need to loop through each category list item:
// Loop through each category list item's anchor tag jQuery('.cat-item a').each(function() { // Add the rel attribute jQuery(this).attr('rel', 'tooltip'); // Get the title $title = jQuery(this).html(); // Add the category title as a title attribute jQuery(this).attr('title', $title); });Forum: Fixing WordPress
In reply to: Static page shows posts instead of page contentYou are welcome…
Forum: Fixing WordPress
In reply to: Blog page not showing postsOk… please show the code. 🙂
Forum: Fixing WordPress
In reply to: Blog page not showing postsActually, I apologize. When you do what I mentioned, WordPress ignores all page templates and forces the index.php file to be used. And this makes sense since you already had these settings in place. Do the opposite of what I said and set that field back to “— Select —“. Then you’ll use your page template instead.
Forum: Fixing WordPress
In reply to: Static page shows posts instead of page contentDon’t use query_posts as it changes the main loop.
Alters Main Loop
query_posts() is meant for altering the main loop. Once you use query_posts(), your post-related global variables and template tags will be altered. Conditional tags that are called after you call query_posts() will also be altered – this may or may not be the intended result.
Use get_posts instead:
http://codex.wordpress.org/Template_Tags/get_posts
Takes the same arguments as query_posts. Follow the example on that page and you should be fine.
Forum: Fixing WordPress
In reply to: Blog page not showing postsLog into the admin section and go into “settings->reading”. Change “Front page display” to “A static page” and for the “Posts page:” choose your blog page.