wpbless
Forum Replies Created
-
It needs to appear on the HOME page, and on the CITIES page.
Putting it in two categories causes it to be posted twice to the home page.
Any solution for that???
Tried it with the index.php template.
Named it cities.php. Put it in the folder of the currently-active theme. But the post that I tagged for the CITIES (and HOME) category isn’t showing up on the CITIES page. http://cultureblog.modelpeopleinc.com/cities/
[Code moderated as per the Forum Rules. Please use the pastebin]
THANK YOU!
I’m doing something wrong, but I’m getting closer.
Here’s what I did:
I created a WP page called CITIES.
I also created a category called CITIES.
I created a post and assigned it to two categories: CITIES and HOME.
(My customer wants text on the nav bar to be in upper case.)I pasted the single.php template into Notepad.
Above if (have_posts()) I pasted
query_posts(‘category_name=CITIES&showposts=12’);the_excerpt();
Gave the name cities.php to this result:
[Code moderated as per the Forum Rules. Please use the pastebin]
I put cities.php in the currently active theme folder.
But the CITIES page is still blank. http://cultureblog.modelpeopleinc.com/cities/
Apologies for being so clue-less. I’m still reading codex files, but maybe somebody will take pity on a moron.
(I’ll try index.php now too.)
A link on “Read more…” above?
I pasted that from Notepad into this discussion.I meant the snip above:
<?php query_posts('category_name=HOME&showposts=12'); while (have_posts()) : the_post(); ?>I think that is for pulling the posts from a category of the name Home, and to show the 12 most recent posts from that category.
Also need to figure out how to get it to display the post’s excerpt.
(To make the excerpt, each post will use <–more–> in Add Post.)I think I’m getting closer to finding what snip to use for the excerpt, but I don’t know how this fits together, or where to use it with the query_posts snip above.
<?php the_excerpt(); ?>For “Read more…” I’m reading the snip would be something like:
<?php function excerpt_ellipse($text) { return str_replace('[...]', ' <a href="'.get_permalink().'">Read more...</a>', $text); } add_filter('the_excerpt', 'excerpt_ellipse'); ?>But where to put this so I can start testing it… that might be the question…
sincere thanks.
[Please post code snippets between backticks or use the code button.]
BTW… Is my code snippet correct?
thanks thanks thanks
The codex says:
Toward the bottom of the Write > Page administration panel (or on the sidebar, depending on which version of WordPress you are using) is a drop-down labeled “Page Template.” From there you can select which Template will be used when displaying this particular Page.
(by the way, in 3.1, the Page Template under Appearance/Editor.)
Sorry that I think I need to be spoon-fed on this.
I am thinking of
1. starting with the Page template here and pasting it into Notepad.
2. pasting this code in there somewhere: BUT WHERE?
<?php
query_posts(‘category_name=HOME&showposts=12’);
while (have_posts()) :
the_post();
?>3. Saving this file with the same name as the category_name attribute. I.e., home.php (All my page names are going to match the category names whose content the pages need to display.)
4. Putting this home.php file in my themes folder.
Is this pretty much it?
Huge thanks.
Thank you VERY much.
It probably says in the codex link you provided, but sometimes these essential details are so buried, I hope you don’t mind if I ask…
Does it matter where in the php you put the snip?
Thank you for this fantastic plugin!
After I deliver a functioning site, I’m going to give my client a list of plugins to donate to.
Oh. It’s you. Fernando. Right there.
It seemed to work on an earlier installation, but had to reinstall and now in the second build of my client’s site, I can’t keep it from displaying the code in the post, both under the Visual tab in WP and in the browser online.
I was going to start testing it with one post for every category to see if that works okay. (Client said that wasn’t working last time, but I didn’t get a chance to check how she categorized the content.)
I’m someone who installed it for the first time on 3.1 and it isn’t working. Such a disappointment. Great plugin.
Anybody heard from Fernando, its creator?
just realised “Allow comments” override is in the Quick Edit panel. It’s not SUPPOSED to be under the text box in Add/Edit Page/Post.
thank you scruffy!!!
Forum: Fixing WordPress
In reply to: Widget Primary Secondary empty, but side bar shows Widgetsforgot the answer to this
http://en.forums.wordpress.com/topic/where-are-my-active-widgets?replies=6#post-312953Forum: Fixing WordPress
In reply to: 2.9.2 just too many problems.I’m having the same problem.
Knit Vision… do you know how to solve it?