ViPeRx007
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Admin side: Changing the title on Posts -> All Posts pageThanks Steve, the solution on that page didn’t exactly solve my issue, but it did put me on the right path and I did finally figure this out. For anyone who wants to know, I ended up adding the following code to the functions.php file in my theme to change the default Posts to Episodes:
// Function to change "posts" to "episodes" in the admin side menu function change_post_menu_label() { global $menu; global $submenu; $menu[1][0] = 'Episodes'; $submenu['edit.php'][1][0] = 'Episodes'; $submenu['edit.php'][10][0] = 'Add Episode'; echo ''; } add_action( 'admin_menu', 'change_post_menu_label' ); // Function to change post object labels to "news" function change_post_object_label() { global $wp_post_types; $labels = &$wp_post_types['post']->labels; $labels->name = 'Episodes'; $labels->singular_name = 'Episode'; $labels->add_new = 'Add Episode'; $labels->add_new_item = 'Add Episode'; $labels->edit_item = 'Edit Episode'; $labels->new_item = 'Episode'; $labels->view_item = 'View Episode'; $labels->search_items = 'Search Episodes'; $labels->not_found = 'No Episodes found'; $labels->not_found_in_trash = 'No Episodes found in Trash'; } add_action( 'init', 'change_post_object_label' );Forum: Developing with WordPress
In reply to: Admin side: Changing the title on Posts -> All Posts pageI used a plugin called Admin Menu Editor, but it seems to only change menu names, not the templates.
Maybe a custom post type would be simpler.
Forum: Developing with WordPress
In reply to: Admin side: Changing the title on Posts -> All Posts pageThanks, but I thought that plugin was mainly for changing titles of pages and posts for the public side. I’m trying to change an admin template page title. Maybe I’m not looking in the right spot.
Forum: Plugins
In reply to: [Testimonial Slider - Free Testimonials Slider Plugin] SuggestionsI appreciate this plugin and find it does mostly what I need, but I wanted to just echo AzRaIL’s message about having a way to control/filter which testimonials show on each slider. That would be really great. I see that you have plans to add this into the next update, but I was wondering if you know when that might be? I’ve got a project I’m trying to finish up and may have to look at another option if this feature won’t be added for a while still.
Thanks.
Forum: Networking WordPress
In reply to: Problem with relative links on subdirectory installI ended up just going through the content and changing all the links manually. I’ll chalk this one up to a learning experience regarding links if I ever have to do another subdirectory install.
Thanks for the help.
Forum: Networking WordPress
In reply to: Problem with relative links on subdirectory installCan I change the root of the /glacier install to /glacier then or is it impossible to stop it from going all the way up to the top level? I realize that technically it’s working how it’s intended to work, but it’s not working for my purpose and so I’m forced to modify it if possible. I just don’t know how to.
I’d like to avoid having to go through and change all of the links manually if possible, but if that’s what has to be done I will.
Forum: Networking WordPress
In reply to: Problem with relative links on subdirectory installYes, in my example above the actual HTML of that image is this:
<img src="/wp-content/uploads/swan_mountain_outfitters_glacier_division.jpg">and it comes out as…
<img src="http://www.swanmountainoutfitters.com/wp-content/uploads/swan_mountain_outfitters_glacier_division.jpg">…instead of how I’d like it to be, which is…
<img src="http://www.swanmountainoutfitters.com/glacier/wp-content/uploads/swan_mountain_outfitters_glacier_division.jpg">The links are actually within the content. They were set as relative because I knew I’d be moving the site from a preview to the subdirectory. I have no problems when I’m doing a normal root install, but the subdirectory is throwing me off.
On the /glacier homepage, all of the links in the center column (text links, images) are all incorrect. I could go through and update them all manually and give them absolute links, but it seems like there should be a way to just make the relative link use http://www.swanmountainoutfitters.com/glacier as the root instead of it going all the way back to http://www.swanmountainoutfitters.com.
I did some digging around and sort of got this working. Or at least it’s closer anyway.
Edit this file:
/plugins/wordpress-seo/frontend/class-breadcrumbs.phpLine 267, deleted this:
if ( isset( $opt['breadcrumbs-boldlast'] ) && $opt['breadcrumbs-boldlast'] ) { $link_output .= '<strong property="v:title">' . esc_html( $link['text'] ) . '</strong>'; } else { $link_output .= '<span property="v:title">' . esc_html( $link['text'] ) . '</span>'; }This removes the current page but I’m not sure exactly how to take off the trailing separator. I’m not sure if this is the best way to accomplish this task considering it’ll probably be overwritten with any plugin update, but it’s a start.
I’m trying to figure out how to do this as well…
Forum: Plugins
In reply to: [Simple Lightbox] Simple Lightbox and NextGEN conflictThis was kind of a dumb question. After thinking about it I realized I could just disable the lightbox functionality in the NextGEN settings and let Simple Lightbox do that part.
So this is what I did:
1) Leave Simple Lightbox as it is.
2) On NextGEN go to Gallery -> Options -> Effects and set “Javascript Thumbnail effect” to None.
Forum: Plugins
In reply to: [Plugin: Hide Admin Panels] Any alternatives to this plugin?Ok, well that was a bad example but I have other plugins; SEO, Contact Form, etc. That I want to be able to make sure certain clients don’t mess around with.
Forum: Fixing WordPress
In reply to: Getting the_title() and the_content() within an if..elseifMaybe I’m not quite as dumb as I thought. I got it working by adding:
<?php endwhile; ?>
between the closing div’s for #post-## and #content.
Everything is working now! Thanks everybody.
Forum: Fixing WordPress
In reply to: Getting the_title() and the_content() within an if..elseifI think I’m getting closer but now I’m getting a syntax error on line 96 (which is the very bottom line with the get_footer string. Why does php hate me so….?
Here’s the whole page code:
[Code moderated as per the Forum Rules. Please use the pastebin]
Forum: Fixing WordPress
In reply to: Getting the_title() and the_content() within an if..elseifThanks for the quick reply Rev. Voodoo. Hmm, I’m not having much luck with these though. I’m getting syntax errors in Dreamweaver and a blank white page on the site itself.
Forum: Fixing WordPress
In reply to: Menu Issue: Keeping parent item active throughout child navigationNo, I wasn’t meaning that you were treating me like a newbie, I was just referring to the issues I’ve come in here requesting help on. They haven’t been super complicated things, just things I overlook.
Regarding the menu, I suppose it is an accordion. I guess I tend to think of accordion menus as the ones that slide open and closed without changing the page, whereas this one is just displays a menu on the new page.
Again, I don’t want to over-analyze this one as it’s doing what my client wants so I’ll leave it at is for now.
Thanks for the help as usual, esmi. You’re the only one who’s helped me on this site. Of course I’ve only come for two issues….so far.