fschroiff
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: change part of urlthanks for the response!
Yeah, I know about those plugins. But they were not practical for this project.
I guess there are some ways to get a link and manipulate it somehow withe php, but I don’t know anything about that.
If you have:
<?php echo $_SERVER ['REQUEST_URI']?>it spits out the URI of the page you are on. No idea how to manipulate that. I guess I should go to a .php forum…Forum: Fixing WordPress
In reply to: How to: Parent page default to a child page?Sorry for the multiple posts… I contacted the author of above mentioned blog-post. He sent me the following code to put in my functions.php:
function latest_page($id) { global $wpdb; $page_id = (int) $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_type = 'page' AND post_status = 'publish' AND post_parent = '$id' ORDER BY post_date DESC LIMIT 1"); $page = get_page($page_id); $uri = urldecode($page->post_name); if ( $page->post_parent == $page->ID ) echo get_settings('home').'/'.$uri.'/'; while ($page->post_parent != 0) { $page = get_page($page->post_parent); $uri = urldecode($page->post_name) . "/" . $uri; } echo get_settings('home').'/'.$uri.'/'; };Alas, it doesn’t work. I call the latest_page function and get no data at all. I’m not testing on a live page, so I don’t have a link for you.
Forum: Fixing WordPress
In reply to: How to: Parent page default to a child page?I found this: http://www.balauue.org/blog/2007/07/26/mysql-foerdert-den-wahnsinn/ but I don’t know how to get it to work. From the description it looks like it should do what I want.
Oh, and this also could be hacked, but alas, I’m a n00b…
http://wordpress.org/support/topic/97628?replies=4Forum: Fixing WordPress
In reply to: How to: Parent page default to a child page?I would also be VERY interested in functionality like this.
As a temporary workaround: is there a way to have a dynamic link to the first child page?
Forum: Plugins
In reply to: W-P plugin so users can upload a photo w/commentsI would also be interested in a plugin that allows readers to upload photos and add them to a gallery page. Does such a plugin exist?
Forum: Fixing WordPress
In reply to: php 4.4.1 broke my wp installmy site is working again. i sent a mail to my host to ask them what they did. if they tell me i will post it here. thanks for your suggestions!
Forum: Fixing WordPress
In reply to: blix single category page commentsokay, i got a little step closer to what i want to achieve by inserting my code into a new loop:
http://codex.wordpress.org/The_Loop#Multiple_Loops_Example_1
but still no previous/next navigation at the bottom.
Forum: Fixing WordPress
In reply to: blix single category page commentsthis is what’s so frustrating for me: i inserted exactly the same code as in index.php and still it looks different. i don’t get it…
Forum: Fixing WordPress
In reply to: blix single category page commentsplus i think this forum screws up the code…
for example this seems wron to me:
<p class="info"><?php if ($post->post_excerpt != "") { ?>" class="more">Continue Reading<?php } ?>Forum: Fixing WordPress
In reply to: blix single category page commentsif you look at my code example above, you can see that i did include the calls for html. in fact my code looks almost exactly like what you did. and still no commentlinks and no previous/next post links.
Forum: Fixing WordPress
In reply to: blix single category page commentswell… i have a page that contains posts from a certain category. i want the individual posts to display just like they do on my front page and in the archive, i.e. with the ability to comment on every post and to see the number of comments that have already been left. even though i have inserted the aproppriate code into my page template, i do not get the commentlink to display. also i would like to have navigation buttons for previous posts and newer posts to this category on the bottom of my page.
Forum: Fixing WordPress
In reply to: blix single category page commentsIn the blix theme all pages appear in the top navigation bar. I want all entries from one category to be accessed by a button in the top navigation bar.