Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Codex talk:Community Portal

Codex skin for Mediawiki

Is the skin GPL'ed or under another free license? If it does: where can I download it?... Please... --Vladon 10:29, 5 December 2008 (UTC)

content duplication

Is this not a duplication of the Guidelines page? I can think of one or two other pages that this material is duplicate of as well. Should we merge them into this one? Should we chop this up and move it out to those pages?

--NuclearMoose 05:49, 1 Jan 2005 (GMT)

This page is linked to from the Sidebar on all codex pages, and so it would be useful to have this around so that newcomers end up on the right page when they click the link. Carthik 14:53, 19 Feb 2005 (GMT)

awesome

AWESOME! Lorelle 20:47, 7 May 2005 (UTC)

centralized wiki meta discussion

I return now to codex after a decent wiki education via wikimedia projects and find it frustrating that there is apparently zero conversation about this wiki on the wiki itself. I see that it is partially due to low edit #'s in general... but I wish there were something similar to the Village Pump here on the wiki? The email list is a much higher barrier to entry (and committment) than simply asking a question on a meta-discussion wiki page. Further, bringing conversation into the wiki allows for easy reference within the wiki to past discussions -- and even policy.

I see potential aversion due to forking discussions between the wiki and the list -- but in general I think this is a better idea than bad. The wikimedia projects I have participated in work well with a combination of in-wiki discussion alongside fundamentally important email lists. Often individual parties will see only one -- but it all seems to work quite well. In my current situation -- I am unlikely to follow the wp-docs email list, but check the codex periodically.

Clever name suggestions encouraged -- certainly something in the codex: namespace such as Codex:Converse or Codex:Input. The result is a wiki-wide talk page which is easily watched and used for centralized discussions.

Deliberately posted here and not the list -- thoughts? here 07:27, 16 Feb 2006 (GMT)

Agree. There definitely needs to be a central place of some sort. --TomEdwards 18:08, 16 Feb 2006 (GMT)
What about Codex:Vortex keeping with the ex theme ;). I will create this and give it a go. It can always be moved. here 00:59, 17 Feb 2006 (GMT)
Almost a year later, no usage. For better or worse, the mailing list remains the central discussion point of the wiki. See Mailing_Lists#docs . here 08:19, 30 Jan 2007 (UTC)

Codex hides Talk pages

I am new here, but this page and all Talk, aka Discussion, pages are hidden with the Codex skin. Is this intentional? I hope it's not and cannot imagine that it is.--Danny Boy 212 00:12, 27 Mar 2007 (UTC)

Danny Boy 212 - give the monobook skin a try. 01:42, 27 Mar 2007 (UTC)

Monobook does indeed display the Discussion Tab, but you miss the point. Codex should not obscure the Discussion page, it is after all 1/2 of the human generated content pages!

Wordpress and robots.txt

Hello.

I have discovered that the robots.txt for Wordpress is preferred by some in order to exclude directories like wp-content, wp-include, etc. Many robots.txt:s I have come across also seem to exclude trackback, comment but also the feed itself. At least in practical terms using directives like */?/ or similar. This means that the feed is excluded. Some also include a direct directive with /feed or Disallow: /feed/. My wordpress blog is available at: http://lyrics-christian-music.com. My posts all begin with ?. From an earlier robots.txt I used, I looked in Google Webmaster account and discovered that many entries were blocked. So I changed it. This is how my robots.txt looks now:

User-agent: * Disallow: /cgi-bin/ Disallow: /wp-admin/ Disallow: /wp-content/ Disallow: /wp-includes/ Disallow: /wp-admin/ Disallow: /?m Disallow: /?feed

Sitemap: http://lyrics-christian-music.com/sitemap.xml

I'm blocking the feed directly knowing that it somehow is okay in practical play. My archive pages start with ?m which means it's rather easy to block those just using /?m without trailing slash. Would my robots.txt work or should I make some changes?

Syntax highlighting on Codex?

Is there any chance of getting GeSHi installed on Codex? It seems that there is currently no way of highlighting blocks of code (there is only the %%% for inline bits and pieces). Sorry if this is not the right place to ask this; I'm new here. — Sam Wilson ( TalkContribs ) … 02:01, 4 November 2008 (UTC)

get_page_by_title with a variable, list child pages

I am struggling to make get_page_by_title to work with a variable.

I'm working on orange.viafoci.com, it's a gallery website for two artists. The page structure looks something like this, Artist name (parent page) -medium type (child page) -medium type (child page)

And the works of art are all posts. The posts are organized by categories, and the category hierarchy structure is identical to the page structure.

My navigation takes use of the .current_menu_item, and when I get to my single.php - this becomes a problem because the single.php is changing the URL structure to show category-parent/category-page/title-of-work, instead of page-parent/page-child ... and I'm using category here to get the pagination prev_posts next_posts to work.

Here's my logic to solve my .current_menu_item problem:::

1. set var to current category's parent = ($catParent) 2. set var to current category = ($category_name) 3. query pages, set var to the page that has get_page_by_title($catParent) = ($parent_page) 4. get child pages of $parent_page in a array = ($child_pages) 5. If $current_category is in_array($child_pages)

{<script>this.addClass("current-cat")</script>}

I have 1 and 2 done, Here's what I have so far:::

<?php

$body_css_category = get_the_category(); $catParID = $body_css_category[0]->category_parent; $catParent = get_cat_name ($catParID); ?>

<?php echo $catParent ?>


<?php foreach((get_the_category()) as $category) {

  if ($category->category_parent  != 0) {
  $category_name = $category->name; ?>

<?php echo $category_name ?>

<?php } }  ?>

This doesn't seem to be working so I'm stuck on #3:::

<?php get_page_by_title($catParent); ?>


Any help or advice is very much appreciated!

Kindly,

allow users to create their own albums/gallery and upload images to it

i want to allow users to create their own gallery/albums into which they can upload photos.he should not have to go to the admin panel.like how we create boards in pinterest or ideabooks in houzz.com. is there any plugins or should i create an independent PHP page. can anybody suggest me how to go about it.

Thanks Anu