ThreeD
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Why is there a /category/ in my menu path?Thank you for the explanation, Otto. Is that a new implementation in 3.x? I can’t remember ever having seen that in previous/older 2.x versions.
Would you advise against removing the /category/ part?
Forum: Fixing WordPress
In reply to: List 5 Random posts with # of commentsNevermind, a WP guru on twitter gave me the quick fix.
The solution is simple -> Change the <?php comments_popup_link ……?> with <?php echo $post->comment_count; ?> comments`
That’s all ??
Forum: Themes and Templates
In reply to: List 5 Random posts with # of commentsCould a mod please delete this post, I’ve reposted it in the correct section. Thanks!
Forum: Fixing WordPress
In reply to: Most popular posts without plugin/widget?Michael, I would say how often the post is viewed/read ?? I could also go for the “# of comments” alternative, but I prefer the “# of views” method.
Do you know of any solution to this?
Thanks for your reply ??
Forum: Themes and Templates
In reply to: Edit the search box in 2.8?!Nice, thanks esmi ??
Forum: Fixing WordPress
In reply to: Single post layout for specific templateThanks for your efforts spstieng, but that doesn’t work ??
Imagine a website with a header, two divs next to eachother positioned under the header, and the footer.
The div on the left is supposed to have a bunch of links. If those links are clicked, the content of those links is loaded into the right div, without refreshing or reloading the entire page. I know iframes works, but that’s a bad solution because the content from the links in the left DIV are loaded into the right div with the header and footer. That would give me two headers and two footers on both pages.
I know AJAX or jquery works for this kind of idea, but I’m not sure how to transform that into code. Here is an example with jquery:
https://res.nodstrum.com/jQueryPHPContent/index.html
I need some script that will figure out for me when the links are clicked in the left div, that the header and footer and removed from the single posts that are loaded into the right div.
If I’m not mistaken your solution would work if my entire page wouldn’t already have a header and footer outside those two divs.
Thanks again for your efforts, I still want to figure this out ??
Forum: Fixing WordPress
In reply to: Single post layout for specific templateSorry Michael, let me try to put it this way ??
When a single post is displayed, the header and footer are always included. What I’m looking for is a plugin that will remove the header and footer when the post is displayed inside a DIV.
It doesn’t look right when an ENTIRE single post (including header & footer) is loaded inside a DIV using AJAX. You’ll end up with double footers and double headers.
So I want to know if it’s possible to somehow make WP know from where a single post is loaded. If I’m making a biography page with two divs. One div (floated left) contains links like “About me” “My history” “More info” etc, and I want to load that content into a 2nd div that’s floated right on the same page, I don’t want the full single post template to be loaded because the links are loaded without refreshing the entire page.
What I’m looking for is if a single post from the left DIV (on the biography page) is clicked and loaded into the right DIV, I want WP to remove the header and footer of the single post.
If the single post is loaded from anywhere else, the header and footer should be included.
I hope that makes it more understandable ?? Thanks again Michael.
Forum: Fixing WordPress
In reply to: Single post layout for specific templatethanks for your reply Michael. I took a closer look at that plugin myself prior to posting here, but I think that plugin doesn’t solve my main problem.
As mentioned earlier I have 2 DIVS (using ajax). One div contains links (the left one), the other div (the right one) is used to display the content of those links, which in this case are wordpress posts.
I have a list of the 10 most recent posts on my front page, or take any posts in any category for that matter. If I assign a post template without header/footer to a set of posts, accessing the posts through the front page or any category won’t look very good.
What I think I need is a plugin that based on the referrer url strips the header/footer of the posts before displaying it in the right div. I can’t think of any other way to do this kind of thing ?? Iframes are another solution, but that is “outdated” and it doesn’t really solve my problem with the header/footer part. Using external files kills the idea of using wordpress posts ??
So if anyone has any great ideas, please share them with me ??
Thanks again Michael.