Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

[SOLVED] Posts marked sticky don't show up with sticky formatting


  #1  
Old Jun 17, 2009, 01:56 PM
genevieve
 
10 posts · Jun 2009
I've been loving the configurability of Atahualpa, but now having a problem with sticky posts. It's my first time using stickies so maybe I'm missing something. I have a post marked sticky from the dashboard (and Wordpress confirms to me that it's sticky), yet the formatting that I've indicated in the Atahualpa options doesn't show up. And when I view the source code, there's nothing in that post that indicates that wp is registering the post as sticky. Do I need to change something in index.php for it to register sticky posts?

Test site is at http://www.genevieveraymond.com/michcitizenaction/. It's that top post. Currently I have a graphic in there, but if I can get sticky formatting to work, I'd like to do my best to mimic that image with css.

Thanks,
Genevieve
  #2  
Old Jun 18, 2009, 07:28 AM
juggledad's Avatar
juggledad
 
23,574 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
What version of WP are you using?

And would you confirm that it is infact a sticky? (go to WP dashboard -> Posts -> edit -. and look to see that the Visibility has STICKY checked off.

I've just tested this with Atahualpa 333 on both WP 2.7.1 and 2.8 and I get different results than you do. There should be the word 'sticky' in the begining <div> for the post.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jun 19, 2009, 03:28 PM
genevieve
 
10 posts · Jun 2009
Hi juggledad,

I'm using WP 2.8 and visibility is definitely STICKY--says so in visibility and in list of posts. But when I view source, here's the div tag: <div class="post-58 post hentry category-homepage" id="post-58">. No sticky. Using Atahualpa 3.3.3. No idea where to go with this one, so I'd love any suggestions.

Again, page is http://www.genevieveraymond.com/michcitizenaction/, top post (graphic).

thanks again,
genevieve
  #4  
Old Jun 19, 2009, 03:32 PM
genevieve
 
10 posts · Jun 2009
Oh, also, just thought of this--did I read somewhere that you can't check a category for a sticky post? Because right now I have a query_posts to include only posts from the "homepage" category in index.php. So the only way to get that post to show up on the homepage was to stick it in the homepage category. Maybe that's doing something?
  #5  
Old Jun 19, 2009, 03:45 PM
genevieve
 
10 posts · Jun 2009
Okay this is getting weird and I'm very confused. When I take the query_posts out, exerpts only on homepage stops working. But sticky post DOES work. When I put query_posts back in, excerpts only on homepage starts working again, but sticky post doesn't register as sticky.

I know very little about php, to be clear--I just mess with it to get WP to do what I need it to do and according to other people's directions, but haven't taken the time to learn the logic of it. So not really sure why this would be happening.

(And I have applied excerpts only fix.)

Last edited by genevieve; Jun 19, 2009 at 05:32 PM.
  #6  
Old Jun 20, 2009, 10:16 AM
juggledad's Avatar
juggledad
 
23,574 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
When you mention query Posts, are you talking about the plugin?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Jun 23, 2009, 09:57 PM
genevieve
 
10 posts · Jun 2009
no, putting

<?php
if (is_home()) {
query_posts("cat=4");
}
?>

above loop in index.php
  #8  
Old Jun 24, 2009, 12:10 PM
juggledad's Avatar
juggledad
 
23,574 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
So let me see if I can review what you want to do.

You want to create a category of 'sticky' and have the posts with that category show up as stickies. To that end you added the code in the earlier post to display them.

What I don't understand is why you don't use the built in WordPress stickie checkbox (dasboard->Posts->edit->visibality->edit->Stick this post to the front page)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Jun 24, 2009, 10:39 PM
genevieve
 
10 posts · Jun 2009
I am using sticky functionality. I am also using a category of homepage. Only posts in "homepage" category will go on homepage. One of those "homepage" posts will also be checked "sticky" in visibility.

I have put a query_posts function in index.php so that my homepage calls only those posts in homepage category. However, with query_posts in index.php, the custom formatting I've applied to sticky posts doesn't show up.

When I remove query_posts, sticky formatting works again. However, when I remove query_posts, excerpts only no longer works for the homepage (despite having applied the excerpts only fix).

I'm totally stumped. Something is simultaneously affecting:

*sticky visibility
*excerpts only
*ability to use query_posts to include only one category on homepage
  #10  
Old Jun 25, 2009, 07:19 AM
juggledad's Avatar
juggledad
 
23,574 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Quote:
However, when I remove query_posts, excerpts only no longer works for the homepage (despite having applied the excerpts only fix).
This works for me. Make sure that
1) at ATO->Posts or Excerpts -> Posts or excerpts on HOME page? you have 'Only Excerpts' set
2) at ATO->Posts or Excerpts -> Show the first X posts on HOME page as full posts? you have it set to 1

Test and see if excerpts work on the home page (without the code in index.php)

mean while I'll be looking at the other issue
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #11  
Old Jun 25, 2009, 10:40 PM
genevieve
 
10 posts · Jun 2009
thanks juggledad for persisting with this with me.

i'm not sure what happened, but excerpts only no longer seems to be an issue. sorry that i confused the issue more than necessary.

however, query_posts and sticky visibility don't seem to be compatible. as soon as query posts goes in, sticky formatting doesn't work. are you able to reproduce this?

thanks,
genevieve
  #12  
Old Jun 26, 2009, 04:04 PM
juggledad's Avatar
juggledad
 
23,574 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
The issue here is that query_posts() is a WordPress function, not within Atahualpa's realm
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Jun 30, 2009 at 11:03 AM.
  #13  
Old Jun 30, 2009, 09:06 AM
genevieve
 
10 posts · Jun 2009
Okay, thanks. For what it's worth, I DID figure out that all is well if I used query_posts to *exclude* a category. So I've just reworked my categories so that instead of *including* "homepage" category, I'm just excluding everything else. A good enough fix as anything else!

Bookmarks

Tags
sticky, sticky post

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show sticky posts in category pages c32v Atahualpa 3 Wordpress theme 3 Dec 12, 2010 09:37 AM
[SOLVED] Sticky Background Color OneSister Atahualpa 3 Wordpress theme 6 Apr 23, 2010 08:15 AM
Sticky Footer krystyna Post-Kicker, -Byline & -Footer 1 Jul 12, 2009 06:21 AM
Sticky: Post: Container HELP!! lotusheartsinbloom Plugins & Atahualpa 2 Jul 3, 2009 10:19 PM
Sticky Headers + Sidebar justjoolz Atahualpa 3 Wordpress theme 1 Apr 7, 2009 06:57 AM


All times are GMT -6. The time now is 06:08 AM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.