|
Make a file. Call it test_template.tpl.php and put it in your theme directory. At the top of the file do this. code:
Load the page.
|
# ¿ Oct 1, 2009 21:53 |
|
|
# ¿ May 11, 2024 11:26 |
|
code:
Ned fucked around with this message at 23:07 on Oct 8, 2009 |
# ¿ Oct 8, 2009 22:54 |
|
Yeah. Just match it to whatever specific string you are looking for and increase/decrease the substr in order to match the string. Technically you could modify wp_query and do the title comparison there to the number of results tossed back. This will get all the children. Not a big deal if you only have a small amount of data but if you have tons you might want to optimize it a little.
|
# ¿ Oct 9, 2009 02:08 |
|
How big are the boxes you are putting them on?
|
# ¿ Oct 13, 2009 21:05 |
|
You can do round corners with css3. If you don't want to go down that route you there are a few ways you can do it using just one image. You need to have a way to get it into the four corners or a mechanism for doing top/bottom.
|
# ¿ Oct 14, 2009 02:22 |
|
I wrote a [http://1080d.com/2009/10/load-your-javascript-properly-in-wordpress/]short post[/url] about how to use wp_enqueue_script and wp_enqueue_style on my blog today. In 2.8 they added a toggle at the end of wp_enqueue_script that will put your JS at the bottom of your page. Useful for improving your score on YSlow.
|
# ¿ Oct 14, 2009 22:05 |
|
Any reason why you are trying to use WPMU in that way? If it is for a specific client and on it's own domain then what part of MU do you need? You should probably set up the blog to resolve to http://client-name.com/ and make sure WPMU can handle requests made there.
|
# ¿ Oct 15, 2009 23:28 |
|
In my experience WPMU is meant for providing lots of different blogs on one domain. I know it is used for hosting blogs on multiple domains at Wordpress.com but I think the downloadable version is for subdomains or subdirectories. There is a post here that explains how to set it up but it is going to be a mess. I think it is best to set up Wordpress sites individually using cpanel accounts. It makes them a lot more portable. While it is a bit more effort than WPMU it will allow you to tailor the site for each customer's needs.
|
# ¿ Oct 16, 2009 00:33 |
|
I agree. You will most likely have to create your own model for how to manage that information. I could see a plugin that attaches a new menubar on the left which has a custom db model associated with it that allows you to enter in all the appropriate information about the real estate. The plugin would also need to modify the .htaccess file to handle requests related to the data model. WordPress isn't really a framework for applications. You'd have to build an application which gets turned into a plugin. You might want to take a look at the code behind Great Real Estate. I took a quick glance and it will add it's own table to the database and then I believe it associates posts with that table. Then you can search directly against that table instead of trying to do wacky things with the Wordpress meta table.
|
# ¿ Oct 23, 2009 20:35 |
|
I talked with supster about this on AIM for a bit and thought that custom app that spit out JSON could work very well with Wordpress. If it is a simple model it shouldn't be too hard to put together and then you can focus on bringing in the data to Wordpress in various ways.
|
# ¿ Oct 23, 2009 23:35 |
|
I have a dev license. We could work on the project together if you would like. I kind of threw my eggs into the Shopp Basket because I figured they were the best e-commerce solution for WordPress and I wanted to support them early on. They have a nice interface.
|
# ¿ Oct 26, 2009 15:33 |
|
I have a subdomain where I am upgrading WordPress and Shopp. I'll let you guys have access to it if you want to play around.
|
# ¿ Oct 26, 2009 16:50 |
|
Yeah. The event plugins for Wordpress aren't really that great. I'd use google calendar and then use wordpress meta fields to tie them together. You can output google calendar info as JSON and read it in with Wordpress very easily.
|
# ¿ Nov 5, 2009 19:33 |
|
just use the_permalink() or you use the_content() with the proper read more function. the_excerpt() doesn't use the read more stuff.
|
# ¿ Nov 7, 2009 14:39 |
|
It is a css rule on the bodycode:
|
# ¿ Nov 11, 2009 16:32 |
|
code:
quote:I'm trying to figure out:
|
# ¿ Nov 18, 2009 20:25 |
|
Those are totally different things. You probably want to modify header.php and switch out the part where it has an h1 with an image.
|
# ¿ Nov 18, 2009 21:59 |
|
No problem. I went to WordCamp NYC this weekend and was very happy to talk about WordPress all weekend long.
|
# ¿ Nov 18, 2009 23:19 |
|
There were a ton of people there and lots of folks from the core team. Overall turnout was 700+. I spent most of my time talking with the guys behind cacoo.com.
|
# ¿ Nov 19, 2009 00:09 |
|
Yeah. Template file it up! Once you understand what template files can do you are going to love WordPress. Just include the header and footer as you normally would on index.php or page.php. Then you can run whatever PHP you like. You also have access to $wp_query and $post if you want to be able to control some text on the page. $_GET will work as normal. Just pass through whatever. I use templates a lot to build simple AJAX APIs. I really like the way they work. Mess with them a bit and let us know if you need more help.
|
# ¿ Nov 19, 2009 09:51 |
|
You could use buddypress or take advantage of the get_user_option and update_user_option functions perhaps. You might be able to put in a hook that makes sure those users don't see the dashboard. Or perhaps there is a plugin?
|
# ¿ Nov 20, 2009 22:40 |
|
I slowly worked through the concept of the Settings API. Very confusing. Luckily I think I understand it now. I'll have a writeup soon. Also, this thread has been around for almost 6 months. I have gotten around to releasing my first real plugin to the community and I have a tool going at work that is seeming to get a decent amount of traction. Have you guys seen the platform get better?
|
# ¿ Nov 24, 2009 07:07 |
|
What about custom fields is confusing you? I think the part that is strange is the idea of calling them custom fields in the post editor but then access them as get_post_meta() calls. The other thing that is confusing is the idea of having multiple custom fields with the same name but different values. Anyhoo, get_post_meta() is that function you need to call. You need to shove in the id of the post/page, so use get_post_meta($post->ID, 'field_name', true); to return the first result as a string for the field_name. If you want to store a bunch of values in the same field name you switch that to false, and then you get back an array and open up some interesting concepts. It would be easy to build galleries around a list of image ids that you associate with a post. You can also use get_post_custom($post->ID); to get all of the fields and then build your page around looking for things that exist inside the array you get back.
|
# ¿ Nov 29, 2009 23:41 |
|
I could probably help you with it. I guess I should learn bbPress.
|
# ¿ Dec 6, 2009 02:04 |
|
excidium posted:I'm having an issue with how Wordpress is rendering a Page in IE differently than in Firefox. I built the page in Dreamweaver first and it previews fine in both browsers. Once it's in Wordpress though it's adding paragraph tags all over the place that aren't there in Firefox and not there in IE when viewing as a standalone HTML file outside of the Wordpress page. Paragraph tags come from tinymce. Just do something like code:
Alfalfa: Your stuff seems to be working for me. Nice work on this site.
|
# ¿ Jan 6, 2010 21:20 |
|
Go for html5. No reason to do anything else if you want to learn.
|
# ¿ Jan 6, 2010 23:41 |
|
Get some cheap, proper hosting and develop on a subdomain. That is what I do when I make WordPress sites and I am very happy with the process. The big thing with local development is it is hard to show people things when you need some help/advice.
|
# ¿ Jan 7, 2010 16:58 |
|
What type of page are you trying to echo it on? Switch to $_GET[] since you know it is a get variable and make sure the page you are trying to echo it on includes header.php somewhere along the way. I can take a quick look for you if you post a URL. On a side note we are trying to set up an environment for a blog that is getting 100k visits a day. Moving things from Yahoo is not fun or easy.
|
# ¿ Jan 14, 2010 02:09 |
|
You can do a database dump and then you just need to change a couple of settings in the options table for the new hosting.
|
# ¿ Jan 22, 2010 07:09 |
|
You can be lazy and do it with jQuery. Otherwise you can make the a tag the same size as the header with css and hide the description. jQuery way code:
|
# ¿ Jan 22, 2010 22:10 |
|
use wp_enqueue_style(); and get_bloginfo('stylesheet_directory'); And don't mess with anything outside of wp-content/ - that is the core and touching it will only lead to heartbreak.
|
# ¿ Jan 26, 2010 00:22 |
|
Is there a page from before with the slug of portfolio? How are your permalinks for categories set up?
|
# ¿ Feb 1, 2010 18:39 |
|
You might need to go into the db and see if something has a post-slug of portfolio in there.
|
# ¿ Feb 1, 2010 20:02 |
|
Why don't you just make your vanilla php page index.php in the theme directory and add the wp_head() and work from there? You only really need an index.php in there to handle all the requests. It will look for specific files like single.php and page.php but will push everything through index.php if it can't find what it wants.
|
# ¿ Mar 5, 2010 01:37 |
|
wp_list_categories or something like that is probably what you need to do.
|
# ¿ Mar 18, 2010 15:38 |
|
If you google, the docs will come.
|
# ¿ Mar 19, 2010 04:35 |
|
Do you have any plugins in there? You might want to see if the theme uses wp_enqueue_script - if it just uses script tags you might have some js duplication.
|
# ¿ Mar 19, 2010 19:35 |
|
You have a ton of JS in there that all probably does the same thing. In the top: code:
code:
|
# ¿ Mar 19, 2010 21:04 |
|
You can try the head cleaner plugin. Personally I think it is the theme. It has a bunch of junk in there you probably don't want.
|
# ¿ Mar 19, 2010 22:55 |
|
|
# ¿ May 11, 2024 11:26 |
|
Build a page template with a feed from flickr?
|
# ¿ Mar 24, 2010 21:15 |