Streetproject
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Page Sidebars] Use a generated sidebar elsewhereDoesn’t that go back to the issue of not maintaining the registered styles? (before title, after title, etc..)
Forum: Plugins
In reply to: [Simple Page Sidebars] Use a generated sidebar elsewhereI couldn’t intervene your sidebar call unless I used query_posts. It was a category (custom taxonomy) page specifically and it would always take the last sidebar of whatever was queried (which I reset, but then it would use the default).
Adding the sidebar name and all filters/actions didn’t have any effect (your code overrides all mine).
Any other suggestions on how to call a generated sidebar onto a category page? I normally don’t use global query override, but that was the only way to change the sidebar (at least as far as I could investigate).
Forum: Plugins
In reply to: [Simple Page Sidebars] Use a generated sidebar elsewhereJust as a really sloppy (but working) method for anyone searching for a way to use a sidebar on a template:
before using the get_sidebar() call, query a page that uses the sidebar you want and then use the_post() right before the call. You can use wp_reset_query() after as well.
So here is the new code:
<?php query_posts('page_id=12'); // change to the ID of your page the_post(); get_sidebar(); wp_reset_query(); ?>
This will work for now.
Forum: Plugins
In reply to: [Simple Page Sidebars] Use a generated sidebar elsewhereOkay. Thanks a bunch! This helps developers like me out a lot!
Forum: Plugins
In reply to: [Simple Page Sidebars] Use a generated sidebar elsewhereOkay, changes work great. Will this get pushed here to wordpress?
Forum: Plugins
In reply to: [Simple Page Sidebars] Use a generated sidebar elsewherewhoops.. that was without your GitHub changes…
Forum: Plugins
In reply to: [Simple Page Sidebars] Use a generated sidebar elsewhereThe above code didn’t work on my installation.
Just incase you are interested:
1. Added code to functions.php
2. Went to WP->Posts->Add New
3. Verified sidebar meta-box missing from the “Screen Options” tab.Forum: Plugins
In reply to: [Simple Page Sidebars] Use a generated sidebar elsewhereI appreciate your help.
I wanted to download your plugin not for myself, but for my bosses who want to be able to add/delete sidebars. I liked your plugin for it’s simplicity, but the simplicity came at the cost of no customization (like you said, not your goal so not your fault). I was hoping that since I was a developer I could just add some hooks to add some more options, but the hacks were getting pretty extensive so I just went ahead and used my own built-in functions.
As for the custom version, I actually had already gotten it to where it would load/save on posts/custom post_types (for debug purposes), however I am doing everything in my power to not edit plugin/parent theme files. We normally just make our edits right on the original files, but I want to move away from that as a company, so that we can automatically update those files instead of having to do the updates by hand.
Anyways, I’ll go ahead and mark this as resolved. If you wanna discuss anything else feel free to keep the conversation going.
Forum: Plugins
In reply to: [Simple Page Sidebars] Use a generated sidebar elsewhereYeah, unfortunately that looses all the registered argumets applied to the original sidebar.
Your plugin is honestly really impressive, and I hope you continue to invest in it to eventually allow some more control (apply sidebars to posts/custom post_types).
And I appreciate your quick response. I was expecting to not get an answer for a while.
It looks like I’ll be registerring sidebars by hand, and loading them by meta-data attached to posts/pages.
Thanks again for your help,
MattForum: Plugins
In reply to: [Simple Page Sidebars] Use a generated sidebar elsewhereBrady,
First, thanks for the quick response (and the great plugin for that matter)
Just so you know, here is my individual setup:
The parent theme has only one sidebar, and I have been using the child theme to better suit our theme. Even though our blog is hosted in a separate WP installation, I know we are considering merging the posts into our main WP installation. So because of that I created a new post type and a separate category taxonomy.
Ideally, I wanted to create/link sidebars on individual posts (not that they would change page-to-page, but my company changes there mind a lot and the option is always nice).
So plan B was to just call the specific created sidebar on the single and category templates for that custom post type (since they needed their own templates anyways).
So in quick, the answer to your questions:
- Do I want them to very between posts? Yes (but that is probably a much bigger fix)
- Is the post sidebar different then the blog sidebar? Yes (because it is a different post type)
- Am I using the plugin to create sidebars then use in my template? Yes (because I figured question 1 and 2 would be a bigger hack)
Thanks again for your quick response.
MattForum: Fixing WordPress
In reply to: Edit menu-item names BEYOND cssYeah, I figured we couldn’t do it that way. Currently I just put bold tags on the second words, but I would need a better fix. Eventually my client is going to change navigation on his own, and I would rather not teach my clients how to bold text. Even that simple idea is complicated to some…
Forum: Themes and Templates
In reply to: Breadcrumbs relative to wp_nav_menuas an added note, here is what I have determined:
I need to get the current navigation menu
I need to match the current page id with the id on the navigation
I need to check to see if that page (on the navigation) has any parents
I need to print the name and a link to that parentWhat is bold is what I don’t know how to do. Can anyone help? Any leads or anything will be greatly appreciated!