redone975
Forum Replies Created
-
I found the spot to make the necessary change, just trying to figure out what’s the best approach. Within the main.php (on line 18), I have updated the code to this (so far) to make improvements on the display of files:
$s = preg_replace('/\[file\](.*?)\[\/file\]/', '<p class="comment-attachment"><strong>Attachment:</strong><br><a href="$1">$1</a></p>', $s);
Forum: Themes and Templates
In reply to: Categorize taxonomies within a custom post type pageThanks Daniel,
My initial post was incorrect. I had actually set up a taxonomy called “staff list” and added “creative director”, “art director” and “designer” to it. Instead of using get_the_term_list(), I used the following:
query_posts('staff-list=creative-director');
I posted the entire code below, Hopefully, someone else might find it useful.
https://wordpress.pastebin.com/XCcBeTB2I also replaced the jQuery “alpha|omega” class insertion for the 960 grid with some PHP code.
Forum: Networking WordPress
In reply to: Change Primary Domain Namethat IS best practise.
Always good to hear I’m on the right track. I think I’m going to try and give the local install (using MAMP) a shot.
Thanks everyone.
Forum: Networking WordPress
In reply to: Change Primary Domain NameYeah, I feel like I’m crossing my fingers on this one and hoping the domain switch isn’t too much of a headache.
It seems like there should be some best practices documentation/recommendations for this type of stuff, especially for a new feature.
Forum: Networking WordPress
In reply to: Change Primary Domain NameSo, should I use this strategy for the following?
I’m working on a redesign project that will use a multisite WP implementation (my first experience w/ multisite). Their old site is still live and they would like to keep it that way while the new site is developed. So, I’m trying to figure out the best approach for building the site(s) in a development area and then flipping the domains when it’s time to push the site live (the code will stay on the same server, just have to point the previous URL to the new server).
Usually for normal WP implementations in this situation, I buy a temporary “dev” domain. For example, if the site URL is company.com, I’ll use devcompany.com. When it’s ready to go live, I switch the directory name to the live domain and update the code and db w/ a find and replace removing the “dev” portion from the URL.
Is this the approach I should take? Should I hold off from creating subsites until I switched the domains?
Forum: Hacks
In reply to: Adding fields to the comments form?The missing link:
https://redone.org/_dev/wp3/2010/11/scribd-document/Forum: Hacks
In reply to: Adding fields to the comments form?Thank you, just checked out the guide by Otto, and while I figured out how to display an extra field in the comment form, I don’t know how to finish it off – save the data when the user submits a comment, display the data in the comments, etc.
I attached the following code to the top of the comments.php file
function my_fields($fields) { $fields['new'] = '<p class="comment-form-organization"><label for="organization">Organization</label><input id="organization" name="organization" type="text" value="" size="30" /></p>'; return $fields; } add_filter('comment_form_default_fields','my_fields');
Forum: Hacks
In reply to: Adding fields to the comments form?Thank you… will take a look.
Sorry, title contains typo. Should be:
Automatically creating unwanted custom fields for new posts.
Forum: Themes and Templates
In reply to: Remove password protection from homepageInstead of hacking around the WordPress code, I decided to use jquery to solve the issue. I placed the following code within the jquery function already located within the header:
$("#grid-wrapper form").remove();
By doing this, the form still appears within the actual post as that form is located within the #single-wrapper div.
All good.
I’m having the same issues here. I’m about to hand over the site to a client and would like to solve this before doing so.
Any help would be greatly appreciated.
Forum: Fixing WordPress
In reply to: Same blog, two URLS, two different headersFrom Esmi:
“Not with 2.9.2 but you might be able to do this using the multi-site functionality in 3.0”
Forum: Plugins
In reply to: One wordpress for 2 URLs with individual header and footerThanks for the quick response. I had a feeling that was the case.
Forum: Fixing WordPress
In reply to: Same blog, two URLS, two different headersIs it possible to utilize one blog for 2 different URLs each with their own header?
Everything else on the site would be identical (theme, content, etc).
Forum: Themes and Templates
In reply to: Overlappings and post-imageAdloran,
Having the same issues you had. Can you provide a little more insight on how/where you implemented the post thumbnail code?
Thanks.
a newbie.