Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
All Hat
Jul 11, 2008

He that is without int among you, let him first cast a long

Thanks, but then I will lose the advantage of the parent theme being updated, or if I change the language file it will break on update, no?

I was hoping I could override a parent function, but as this is just an echo, that will not work.

Adbot
ADBOT LOVES YOU

mcsuede
Dec 30, 2003

Anyone who has a continuous smile on his face conceals a toughness that is almost frightening.
-Greta Garbo
To be honest I've mostly given up on child themes unless you're using a really solid framework like Genesis or WooThemes or Obox or Thesis. Making child themes for some off the shelf theme from themeforest or whatever is a waste of time as they rarely update the parent them and if they do, you can just fix the whatever minor issues crop up on your own.

The whole parent/child system needs a lot of work to actually be as useful as they intend. I don't see it happening.

Ned
May 23, 2002

by Hand Knit
Just rename the theme. If you really need to update it you can do it manually by replacing files in the future.

All Hat
Jul 11, 2008

He that is without int among you, let him first cast a long

Thank you, both.

I'll follow your lead (at least a bit) and just override the whole files where needed.

I do like child themes, if for nothing else than that it keeps the css and other files I actually need to look at small and easy to handle.

cocteau
Nov 28, 2005

The best Darcy.

StrikerJ posted:

Does anyone have suggestions for a theme for a portfolio/photography site.
Looking for something minimalistic with just a little text and photo galleries in different categories. Preferably a free theme since I'm just getting started in Wordpress and want to try it before spending money.

Oh, and I'm also looking for a nice gallery function with dynamic preloading (or whatever) so that you can get the next picture in order instantly.

Thankful for any suggestions.

I like Devin Price's Portfolio Press, http://wptheming.com/2010/07/portfolio-theme/.

snagger
Aug 14, 2004
Help computer

Due to circumstances beyond my control (namely, idiotic former employee who set up WP) I have multiple custom post types that I'd like to have appear on my homepage, including:
post, articles, questions, resources.

Accordingly, my query_posts is written in loop.php as follows:
code:
<?php query_posts( array( 'post_type' => array( 'post', 'articles', 'questions', 'resources' ))); ?>
Yet, only posts of type articles are appearing on index.html.

I've walked into a company that runs a zillion odd plugins and the Open theme, so I suspect there's a config issue that I haven't tracked down.

Where are some more places I could look to resolve the issue?

Ned
May 23, 2002

by Hand Knit
check out the query it is making and see what happens when you run it against the database directly.

Gyshall
Feb 24, 2009

Had a couple of drinks.
Saw a couple of things.
I have just finished my first site for a client that really took advantage of Custom Post Types, and I must say that wordpress owns so hard. I used the Arras theme (also owns hard) and made a really clean looking site. I also used Custom Post Type UI which made the custom posts so loving easy.

One question that hopefully someone can help me understand - what the gently caress are Taxonomys? How do they relate in terms of Wordpress and what would I use them for?

pipebomb
May 12, 2001

Dear God, what is it like in your funny little brains?
It must be so boring.
Do you guys know of a plugin that will let me track unique page views for a post and display it in that authors dashboard (as well as the admin)? I'm setting up a site where people can post content and promote it.

Twiin
Nov 11, 2003

King of Suck!

pipebomb posted:

Do you guys know of a plugin that will let me track unique page views for a post and display it in that authors dashboard (as well as the admin)? I'm setting up a site where people can post content and promote it.

Jetpack?

KuruMonkey
Jul 23, 2004

Gyshall posted:

One question that hopefully someone can help me understand - what the gently caress are Taxonomys? How do they relate in terms of Wordpress and what would I use them for?

Thinking in terms of the normal Post post type; Tags and Categories are Taxonomies.

Custom Taxonomies allow you to invent new ways of tagging or categorizing your Posts. You can apply them to some or all of the post types on your site. Currently you can basically only make new duplicates of the Catgory kind of taxonomy (by setting hierarchical = true), or the tag type (by setting hierarchical = false)

Real World Example;

I'm building a client a site that lists local Bands, Venues and Gigs - I have 3 custom post types for these. I also have taxonomies set up; artist type and venue type - for the relevant post types, these are like the categories. The Gigs have 2 new taxonomies; Performers and Location - which are the of the tag type of taxonomy (you tag the gig with the post slug of the relevant artists and venue)

On the front end this means I can pull out all the Gigs for a given Venue, or I can pull out all the Venues that are Pubs rather than Open Air etc.

The main advantage, however, is in the admin area, when the client has to start editng content; the 3 custom post types appear in the left hand menu, and because of the way I've set up the taxonomies on the site the custom post types ONLY get their custom taxonomies available (so no 'tags' for Gigs etc) - makes the editing of the various types a lot more obvious when I don't have to give instructions that say:

'make sure to put your gigs in the gig category, and then remember that your tags on gigs are for performers, but for venues use the venue category, and now tags are venue types; use only ONE here. But for artists use the artist category, and then put genres of music in the tags. Oh; and never use a tag listing widget on this site, because you'll get a whole mess of performers, venue types and genres mixed together!'


Basically, at the moment, custom taxonomies are a cool tool for programmers who make customized WP installs, plugins and themes to make the client's interface more easy to understand. At the cost of them being actually quite complex to configure, and to write custom loops for.

Gyshall
Feb 24, 2009

Had a couple of drinks.
Saw a couple of things.
You are the man, KuruMonkey, thanks.

Alright, another question -

I set up a Custom Post Type for a client where they put the link to an off-site article in the body of the post, and then a very short "Summary" of the article in the title.

What they want is for this to show up on their site as:

NEWS:

Date - << Summary of link >>

What is the best way to go about this? I am open to anything, even if it is not a custom post type.

Twiin
Nov 11, 2003

King of Suck!

Gyshall posted:

I set up a Custom Post Type for a client where they put the link to an off-site article in the body of the post, and then a very short "Summary" of the article in the title.

Is there a reason why you're using custom post types for this, instead of the built in 'links' feature?

Gyshall
Feb 24, 2009

Had a couple of drinks.
Saw a couple of things.

Twiin posted:

Is there a reason why you're using custom post types for this, instead of the built in 'links' feature?

No, I'm really not sure which is the best way to tackle this. The formatting that the "news" links need to come up as is really throwing me off.

Come to think of it, something like:

News Item Date - Summary with one or two words hyperlinked.

I also need to display these news items as a widget or a list of the latest news items somewhere on the home page like this, and end-users need to be able to add news items very easily.

Twiin
Nov 11, 2003

King of Suck!

Gyshall posted:

No, I'm really not sure which is the best way to tackle this. The formatting that the "news" links need to come up as is really throwing me off.

Come to think of it, something like:

News Item Date - Summary with one or two words hyperlinked.

I also need to display these news items as a widget or a list of the latest news items somewhere on the home page like this, and end-users need to be able to add news items very easily.

Honestly, I would do it through Links, or through Posts with a 'sidebar' category, and then just pulling that category or the links into a widget. I think a custom post type is overkill.

Ignis
Mar 31, 2011

I take it you don't want my autograph, then.


StrikerJ posted:

Does anyone have suggestions for a theme for a portfolio/photography site.

Photoria and Portfolium are some other good options, if you wanna check them out.

snagger
Aug 14, 2004
Edit: Dumb question, I'll go get some plugins.

snagger fucked around with this message at 20:29 on Sep 23, 2011

stray
Jun 28, 2005

"It's a jet pack, Michael. What could possibly go wrong?"
I've been bashing my head against the new menu system for a couple of hours now, to no avail.

I have the navigation for a site that looks like this in the output:
code:
<nav id="access" role="navigation">
	<h3 class="assistive-text">Main menu</h3>
	<div class="skip-link"><a class="assistive-text" href="#content" title="Skip to content">Skip to content</a></div>
	<div class="menu">
		<ul>
			<li class="page_item page-item-2 current_page_item">
				<a href="http://localhost:8080/wordpress/?page_id=1" title="About">About</a>
			</li>
			<li class="page_item page-item-13">
				<a href="http://localhost:8080/wordpress/?page_id=2" title="Another Page">Another Page</a>
			</li>
			<li class="page_item page-item-13">
				<a href="http://localhost:8080/wordpress/?page_id=2" title="Page III">Page III</a>
			</li>
		</ul>
	</div>
	<form role="search" method="get" id="searchform" action="http://localhost:8080/wordpress/">
		<label class="assistive-text" for="s">Search for:</label>
		<input type="text" value="" name="s" id="s" />
		<input type="submit" id="searchsubmit" value="Search" />
	</form>
</nav>
I want to put the form on the same level as the menu. So I want to do one of two things:
1) Get rid of <div class="menu"> (as well as its closing counterpart) altogether and apply a class to the <ul> tag.
2) If I can't do that, then I want to find a way to put the form inside of <div class="menu">.

I've tried using the 'container' argument on wp_nav_menu(), setting it to 'false', but then <div class="menu"> and everything in between just disappears altogether. Right now, I've hacked around the problem by applying a display:inline style to <div class="menu">, but ultimately, I want to nail this issue down.

Now, ideally, I'd be able to add the search form into the menu by registering a custom menu, but that never seems to have any effect on <div class="menu">.

On a related note: if I register a custom menu in my functions.php, shouldn't it show up in Appearance > Menus?

cocteau
Nov 28, 2005

The best Darcy.

stray posted:

I've been bashing my head against the new menu system for a couple of hours now, to no avail.

I have the navigation for a site that looks like this in the output:
code:
<nav id="access" role="navigation">
	<h3 class="assistive-text">Main menu</h3>
	<div class="skip-link"><a class="assistive-text" href="#content" title="Skip to content">Skip to content</a></div>
	<div class="menu">
		<ul>
			<li class="page_item page-item-2 current_page_item">
				<a href="http://localhost:8080/wordpress/?page_id=1" title="About">About</a>
			</li>
			<li class="page_item page-item-13">
				<a href="http://localhost:8080/wordpress/?page_id=2" title="Another Page">Another Page</a>
			</li>
			<li class="page_item page-item-13">
				<a href="http://localhost:8080/wordpress/?page_id=2" title="Page III">Page III</a>
			</li>
		</ul>
	</div>
	<form role="search" method="get" id="searchform" action="http://localhost:8080/wordpress/">
		<label class="assistive-text" for="s">Search for:</label>
		<input type="text" value="" name="s" id="s" />
		<input type="submit" id="searchsubmit" value="Search" />
	</form>
</nav>
I want to put the form on the same level as the menu. So I want to do one of two things:
1) Get rid of <div class="menu"> (as well as its closing counterpart) altogether and apply a class to the <ul> tag.
2) If I can't do that, then I want to find a way to put the form inside of <div class="menu">.

I've tried using the 'container' argument on wp_nav_menu(), setting it to 'false', but then <div class="menu"> and everything in between just disappears altogether. Right now, I've hacked around the problem by applying a display:inline style to <div class="menu">, but ultimately, I want to nail this issue down.

Now, ideally, I'd be able to add the search form into the menu by registering a custom menu, but that never seems to have any effect on <div class="menu">.

On a related note: if I register a custom menu in my functions.php, shouldn't it show up in Appearance > Menus?

I may be confused by what you're trying to do, but it seems to me all you need is a search div inside the menu div and then use CSS to make the search div show up where you want it to be.

stray
Jun 28, 2005

"It's a jet pack, Michael. What could possibly go wrong?"
The menu div is being generated by WordPress and I can't seem to change that.

Ned
May 23, 2002

by Hand Knit
In your $args set 'container' => '' and then it will remove the menu div.

stray
Jun 28, 2005

"It's a jet pack, Michael. What could possibly go wrong?"
No, that got rid of the entire menu div and everything inside it!

cocteau
Nov 28, 2005

The best Darcy.

stray posted:

The menu div is being generated by WordPress and I can't seem to change that.

Are you looking in header.php (or whichever template file is generating the menu)? Or is the menu being generated by javascript and/or a plugin?

bobthecheese
Jun 7, 2006
Although I've never met Martha Stewart, I'll probably never birth her child.

cocteau posted:

Are you looking in header.php (or whichever template file is generating the menu)? Or is the menu being generated by javascript and/or a plugin?

The menu is generated by a wordpress function. You can control a few things by passing it various options, but you don't have a great amount of control over it (unless you install/build a custom menu plugin)

Some links that may help.

cocteau
Nov 28, 2005

The best Darcy.

bobthecheese posted:

The menu is generated by a wordpress function. You can control a few things by passing it various options, but you don't have a great amount of control over it (unless you install/build a custom menu plugin)

Some links that may help.

Yes I know that.

My point is, most of the time in the header.php there's code like
code:
<nav id="access" role="navigation">
<?php ?>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>		
</nav>
and you can add a div inside #nav for <?php get_search_form(); ?> - or afterwards - and then style that as needed. It may mean setting widths for each and having them align horizontally with floats, or putting the search box over the nav bar, or whatever, depending on the design.

Mind you, I'm not a coder, so there may be more elegant solutions, but I've never had problems positioning a search bar or other stuff in the header just using CSS.

cocteau fucked around with this message at 18:39 on Sep 28, 2011

Ignis
Mar 31, 2011

I take it you don't want my autograph, then.


I think this would be a cleaner way to add a search box to a menu.

Something like this should work, to get rid of the ID in the ul:

php:
<?
wp_nav_menu( array( 'container'=>'', 'items_wrap' => '<ul class="%2$s">%3$s</ul>') );?>
Edit: that other paragraph had nothing to do with the actual problem, nvm

Ignis fucked around with this message at 19:31 on Sep 28, 2011

cocteau
Nov 28, 2005

The best Darcy.

Ignis posted:

I think this would be a cleaner way to add a search box to a menu.

And this is why I don't claim to be a coder. :)

stray
Jun 28, 2005

"It's a jet pack, Michael. What could possibly go wrong?"

Ignis posted:

I think this would be a cleaner way to add a search box to a menu.

Something like this should work, to get rid of the ID in the ul:

php:
<?
wp_nav_menu( array( 'container'=>'', 'items_wrap' => '<ul class="%2$s">%3$s</ul>') );?>
Could you explain what the above code does? I don't get that.

Ignis
Mar 31, 2011

I take it you don't want my autograph, then.


container = '' removes the div container, while items_wrap deals with the autogenerated ul - it allows you to tweak its presentation, or get rid of it altogether. You can also use it to replace the ul with a different element.

The default for items_wrap is <ul id=\"%1$s\" class=\"%2$s\">%3$s</ul>. %1$s and %2$s are placeholders for the autogenerated IDs and classes added by WP, while %3$s retrieves the list of elements of the menu.

This parameter isn't really well explained over the codex, but this link should give you a better idea of how it works.

Monster w21 Faces
May 11, 2006

"What the fuck is that?"
"What the fuck is this?!"
Hey folks,

I recently started this thread:

http://forums.somethingawful.com/showthread.php?threadid=3440870

And set up shop of dreamhost.

I tried to install WordPress with the one click install but I get a message about invalid domains despite just registering the domain through dreamhost.

Any tips?

Gyshall
Feb 24, 2009

Had a couple of drinks.
Saw a couple of things.
Two e-commerce plugins that have come out pretty recently:

Jigoshop - http://jigoshop.com/

and Woocommerce - http://www.woothemes.com/woocommerce/

Both pretty much blow all the existing ecommerce Wordpress solutions out of the water, in my experience.

stray
Jun 28, 2005

"It's a jet pack, Michael. What could possibly go wrong?"

Ignis posted:

container = '' removes the div container
Every time I use container = '', though, it removes the menu div and everything inside it.

Bastard
Jul 13, 2001

We are each responsible for our own destiny.
Note: if you ever want to use BBpress and use a custom theme, think again and run away. It's not worth the mental anguish.

Splendid!
Jun 14, 2011

Bow ties are cool.
Could anybody that knows more about Wordpress and the Arras theme help me out with adding a new widget space? The theme is perfect for what I need however the only widget areas available are various sidebar and footer spaces. I'm trying to figure out how I could go about adding a new widget location for above_content but I can't seem to figure it out.

All I'd like to do is be able to add a widget of my choosing above my main page content. Like a showcase.

If anybody knows or has some ideas help would defintely be apprecited.

cocteau
Nov 28, 2005

The best Darcy.

angry_zellers posted:

Could anybody that knows more about Wordpress and the Arras theme help me out with adding a new widget space? The theme is perfect for what I need however the only widget areas available are various sidebar and footer spaces. I'm trying to figure out how I could go about adding a new widget location for above_content but I can't seem to figure it out.

All I'd like to do is be able to add a widget of my choosing above my main page content. Like a showcase.

If anybody knows or has some ideas help would defintely be apprecited.

You need to register a new widgeted area (a new "sidebar" though in reality it could go wherever). http://codex.wordpress.org/Function_Reference/register_sidebar

xpander
Sep 2, 2004
Does anyone have any familiarity with WP e-commerce? I was asked to do a small freelance job, and the documentation was shockingly bad until just a little while ago - I think it was updated sometime between August and now. Anyway, I'm trying to strip some stuff out out of the default store page and make a few cosmetic changes, but I'm not actually sure about its template/code hierarchy. I just want to take the category widget out of the sidebar, and maybe do a couple other things. I'm lead to believe that products_page.php(inside the theme folder) is what loads at the default store view, but I'm making changes and nothing's happening.

stormrider
Sep 18, 2003

Absolut Awful

xpander posted:

Does anyone have any familiarity with WP e-commerce? I was asked to do a small freelance job, and the documentation was shockingly bad until just a little while ago - I think it was updated sometime between August and now. Anyway, I'm trying to strip some stuff out out of the default store page and make a few cosmetic changes, but I'm not actually sure about its template/code hierarchy. I just want to take the category widget out of the sidebar, and maybe do a couple other things. I'm lead to believe that products_page.php(inside the theme folder) is what loads at the default store view, but I'm making changes and nothing's happening.

I jumped ships for shopp about a year ago, so it's been a while, but if I remember right there is a place in the settings where you have to tell it to use custom themes.

xpander
Sep 2, 2004

stormrider posted:

I jumped ships for shopp about a year ago, so it's been a while, but if I remember right there is a place in the settings where you have to tell it to use custom themes.

Yeah, I'd checked that, and it's using the default theme, so I'm in the right place. I totally gutted products_page.php, and the store is happily chugging along. I don't see anything else that appears to generate the store landing page.

raej
Sep 25, 2003

"Being drunk is the worst feeling of all. Except for all those other feelings."
I have two custom post types: Band and Album. Each post type has info about it, tags specific across it, etc. Right now, I can access an album like: Site.com/Album/Aenima or a band like Site.com/Band/Tool. Is there a way to parent/child them so that I can go to Site.com/Album/Tool/Aenima where going to Site.com/Album/Tool redirects you to Site.com/Band/Tool?

Adbot
ADBOT LOVES YOU

Nimrod
Sep 20, 2003
So what would you guys recommend for a Wordpress framework? I've got a little CSS/HTML/PHP knowledge, so I don't mind if it's complex.
Is Genesis by Studio Press any good?

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply