hamburger
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: wp_login_url redirection from a 404 page<a href="<?php echo esc_url( wp_logout_url( $_SERVER['REQUEST_URI'] ) ); ?>">Log out</a> <a href="<?php echo esc_url( wp_login_url( $_SERVER['REQUEST_URI'] ) ); ?>">Log out</a>Happneed because i was doing this outside the loop. Where is everyone by the way? Support is a ghost town in here
Forum: Fixing WordPress
In reply to: Category link bug between browsersFor anyone else struggling with this:
<?php foreach((get_the_category()) as $link) { echo '<a href="../"> < Return To '.($link->name).' Projects</a>'; } ?>This worked in the end. Simple and avoids WordPress’ terrible way of handling and linking categories.
Forum: Fixing WordPress
In reply to: Category link bug between browsersOkay, so in the permalinks structure adding a “/” to the end of the permalinks fixes the discrepancies between the browsers.
Hwoever the problem still remains of the link linking to the page itself not the category!
Forum: Fixing WordPress
In reply to: Category link bug between browsersThis code from Help is also busted :
<?php // Get the ID of a given category $category_id = get_cat_ID( 'Category Name' ); // Get the URL of this category $category_link = get_category_link( $category_id ); ?> <!-- Print a link to this category --> <a>" title="Category Name">Category Name</a>As it just redirects to the current page, not the Category in Chrome and Firefox. Internet Explorer correctly generates the link however it won’t work if you middle click the link
My permalinks looks like this if it helps:
/projects/%category%/%postname%
Forum: Fixing WordPress
In reply to: Category link bug between browsersHi Alchymth, Thanks for the reply.
Here’s a link to the site I’m working on:
At the bottom of the page there is a “Return to Institutional Projects” link. It is generated by the above code.
When using Firefox and Chrome the link just links to the current page. However in Internet Explorer 8 the link correctly links back the the category page.
Just wondering if it is a bug or terrible coding?
Forum: Fixing WordPress
In reply to: Pretty basic permalinks problem on vanilla installHmm…if I do this:
Custom Structure: /project/%category%/%postname%
and leave the Category base as (notice the s on the end)
Category Base: projects
It’s halfway there but the s drops out when navigating through the links. WordPress cannot handle if they are both the same thing though which would have been perfect. 🙁
Forum: Fixing WordPress
In reply to: 3.1 Lost the abiltiy to view postsThanks Ipsetenu, as mention in OP I’ve read and tried the master list.
The solution I have found is to revert back to 3.0.5. I don’t think I’ll be upgrading ever again.
Forum: Fixing WordPress
In reply to: 3.1 Lost the abiltiy to view postsSeems to be no way of editing post?
(Instead of %pagename% I meant to say %postname%.)
Forum: Fixing WordPress
In reply to: Upgrade to 3.1, lost ability to View PostsI’m having the same problem.
All plugins are deactivated
Plugins directory -renamed
Twenty Ten Theme is being used
Forum: Fixing WordPress
In reply to: Back link on post based on current categorySo I tweaked this a little more…
<?php foreach((get_the_category()) as $link) { echo '<a href="'.get_cat_ID($link->cat_ID).'"> < Return To '.($link->name).' Projects</a>'; } ?>it’s better but now all my links look like this:
http://www.site.com/Category/0
with the “0” on the end. How do I get rid of the “0” so my link just displays the category?
Forum: Fixing WordPress
In reply to: Back link on post based on current category<?php foreach((get_the_category()) as $category) { echo '<a href="'.get_category_link($category->cat_ID).'"> < Return To '.($category->name).' Projects</a>'; } ?>Forum: Fixing WordPress
In reply to: Back link on post based on current categoryOkay last question. Getting there…this code works the best:
<?php foreach((get_the_category()) as $category) { echo '<a href="'.get_category_link($category->cat_ID).'"> < Return To Projects</a>'; } ?>However how do I put in a dynamic word in front of “Projects” so it changes depending on the category?
Forum: Fixing WordPress
In reply to: Back link on post based on current categoryI guess I could also use
<?php the_category(' '); ?>But that just displays the Category name…maybe is there a way possible so I could add text and make the whole line a hyperlink?
Forum: Fixing WordPress
In reply to: Changing post width based on custom fieldsHi apljdi, thanks for replying. 🙂
I understand what you mean although I’m very new to making websites. I’ll have a look at modifying the loop and I’ll do some research on this.
however if it is at all any help, here is the website I’m working on.
http://www.mayrussell.com.au/index.php/projects/
Each post depends upon how many images there are in the gallery. So I’m thinking that in my Custom Fields I have three options:
1) 3 Image Page
2) 4 Image Page
3) 5 Image PageThanks again for your help.
Forum: Themes and Templates
In reply to: Theme name brokenAwesome, thanks I had a closer look and found “Convert to Unix Format” in Notepad++ and that fixed things!