Tagged Questions

Themes create the public (front-end) interface for a WordPress site.

learn more… | top users | synonyms

0
votes
1answer
371 views

StackExchange clone using WordPress?

If you were to build a StackExchange clone site using WordPress, how would you do it?
1
vote
1answer
345 views

Set Expiration Date of a Post from the Frontend with wp_insert_post

i try to build a form that users posts from frontend, everything works fine but i need to know if it's possible, if i play with the 'post_date' => date('Y-m-d H:i:s')? if i add a hidden field that ...
1
vote
1answer
185 views

How to obtain the html stripped version of $category->description?

When writing out the category description in my theme (on archives and special category listings) for example, there are times I need the description in full html mode and others when I need it ...
0
votes
1answer
361 views

How to echo category_description() without stripping out html tags?

I'm in archive.php and attempting to write out the current category's description with full html. However, category_description() prints without the html markup. How can I force it to retrieve the ...
0
votes
1answer
492 views

How can the_excerpt (or equivalent) be called on a category description?

In the code below, rather than writing out the entire description field ($category->description), how can I call the equivalent of the_excerpt? I'm placing the "more" tag after the first paragraph of ...
3
votes
3answers
5k views

How to add a WYSIWYG text editor to the Category Edit Screen

I've been working lots with categories lately, what with the increased awareness and demand for themed or silo'd site structures. To that end, I'm looking to enhance my category landing pages by ...
0
votes
1answer
670 views

is_single() works in plugin, not in theme?

I'm attempting to move some code from a plugin over to my theme's functions.php file, but when I attempt to wrap it in the is_single() wrapper inside of functions.php, it never fires. What am I ...
6
votes
2answers
4k views

how to create a conditional content_width for a wordpress theme?

I'm trying to create a conditional statement for the content width in the functions.php of my theme. So some categories will have a content_width of 580, some will have 900. This will make the oEmbed ...
0
votes
1answer
106 views

Why do sticky posts show in this menu?

The code below writes out a list of the most recent posts. However, it does not appear to be skipping over sticky posts although I'm using 'post_not_in' => get_option('sticky_posts'). What am I ...
0
votes
1answer
825 views

How to provide support for [gallery] shortcode?

I'm developing a new custom theme - and noticed that if a post contains the shortcode [gallery] it gets ignored (edit: I mean that the HTML delivered to the browser does not include [gallery], nor ...
9
votes
4answers
6k views

Theme Activate Hook

I would like to write a function to email me the URL of the website when my theme is activated. What is the hook initiated when the theme is activated?
1
vote
1answer
153 views

Administration Pages Styling

I am adding administration pages using add_menu_page() function. But it wont look good. Check the image below. I would like to have it as separated and in between Appearance and Plugins section ...
1
vote
3answers
1k views

How to add categories to wp_list_pages()

What (if any) is the hook or method for including named categories into the wp_list_pages function? The end result would be that the categories are added onto the end of the list of pages (along with ...
0
votes
2answers
539 views

How can i initialize a widgetized sidebar (with widgets)

I have a WordPress multisite installation. The client wants an email update form on the sidebar of every blog. I want to use a widget there so I need to assign it to the sidebar. Is there any way to ...
0
votes
1answer
168 views

How to use widget in a widget-less WordPress theme?

I have a widget-less WordPress theme to which I want to add Subscribe by Email functionality. Unfortunatly the plugin only comes in the form of a widget. How can I use the widget functionality ...
2
votes
4answers
5k views

using upload image with media_handle_upload .. but !

I'm tring to upload image in wordpress by using some function .. I found the way to upload images but there are one problem .. when the user upload his image , wordpress create more than one image ...
3
votes
2answers
540 views

Add a notice to users upon first login to the admin area

I'd like to give users a little welcome message on their first login to the admin area. Once they hide the message it should not appear again. I noticed admin_notice is a hook but don't know where to ...
0
votes
1answer
648 views

Making a horizontal flyout menu from WordPress category listing

I'm looking for some options for creating a horizontal flyout/rollover menu from the WordPress categories listing when category items have child nodes. Ideally, all in css, but I can include ...
0
votes
1answer
1k views

How do you force a sidebar widget to have a container div around all child widgets?

My theme creates several widget areas for the end user. However, I've got a slight problem in that, if multiple widgets are dropped onto any sidebar container, the resulting code in "view source" is ...
2
votes
2answers
430 views

Relative Time On Posts

I am looking for a way that I could add some code to my wordpress template to display the time of a post in relative terms. So if, for example, I posted something 5 minutes ago it would say something ...
3
votes
3answers
1k views

Automatic Updates For Private And Commercial Themes?

Is there any way to get wordpress to check for, download private theme updates? I found this plugin for private plugin updates.... ...
1
vote
2answers
3k views

How to edit my theme for full width?

I am using Manifest 1.01 by Jim Barraud on my site www.inteftrust.org. I'd like to know how can I get full width with this theme. Thanks.
1
vote
4answers
604 views

How to add an option for “nofollow” to the Link editor's existing "Link Relationship(XFN) options list?

How difficult would it be to add an option for "nofollow" to the Link editor's existing "Link Relationship(XFN) options list? Alternately, or better yet, in addition, add an item to the "Bulk ...
0
votes
1answer
618 views

How to preset a sidebar widget with default content via script?

I'd like to add some code to my plugin populate a specific sidebar (if it exists) with a text widget containing preset content. Assuming that the sidebar I'm trying to preset is referenced by ID as ...
0
votes
3answers
229 views

User bar above logotipo?

I am looking for a simple example on how to create a user bar or a simple theme with it that can serve me as example. What I meant is something like we have here on Wordpress Answers if u get above ...
4
votes
3answers
1k views

“Quick Edit” > update clears out my custom meta values

I have two custom meta fields that I've enabled for each post, scottb_customHeader and scottb_customTitle These work fine as long as I'm using the full edit feature to edit posts. However, when I ...
0
votes
3answers
355 views

Add filter on html tags,attributes on specific function in wordpress

Title is little bit :S sorry :) For example,we have paginate links function that output html something like this <span class='page-numbers current'>some number</span> How can I filter ...
1
vote
1answer
162 views

How can I detect hierarchal relationships beyond children (grandchild, great-grandchild, etc)?

Often times, a custom theme for Wordpress will require a dynamic content that reflects a relationship to a top level page of a site. Is there a Conditional Tag that will check if the current page is ...
1
vote
2answers
311 views

How to Take Ownership of a Theme

I installed WordPress on my website along with a theme close to what I wanted. I then changed virtually all the formatting to make it conform to my site. I don't plan on publishing my version, but I ...
0
votes
2answers
1k views

How to add testimonials with an image?

Does anybody have an idea how to add testimonials with an image in WordPress? Is there is any plugin that fulfills my requirement? I searched but did not find any. It must support PHP version 4.4.9.
2
votes
1answer
3k views

Featured Image Size

I am in the process of developing a new theme for my blog and am making a featured content slider. The issue that I am having is getting wordpress to force the image to the dimensions that I want it ...
0
votes
2answers
159 views

Dot “.” in option value foobars save options function

My theme options save routine is below. I'm finding that if the $value['id'] being passed from my options array has a period in it, the data does not get passed and the options appear to break at that ...
1
vote
2answers
4k views

How to add (css) classes to only one wp_nav_menu()?

Edit I removed the original Question as this Q has far above 1.000 views now - which means it's important to a lot of people - to show you something that works a) without a custom Walker & b) is ...
1
vote
2answers
381 views

Fancy-box Esay wordpress plugin fails to work on Multilingual site

I have a multi lingual site. On the site I want to display youtube movies using fancybox (or any other equivalent solution) The plugin is installed and set. When checked on the He version - all works ...
0
votes
1answer
297 views

How to use Canonical URL meta tag to avoid duplicate content issues with WP home pages

By default, Wordrpess sites have at least 2 URLs that can be used to reach the home page: www.site.com/ www.site.com/hello-world Both these URLs point to the same page, the default "hello world" ...
0
votes
2answers
644 views

Can I add an icon & function to the “Upload/Insert” toolbar at the top of the content editor?

Is there a built-in filter to add a custom icon and function to the WordPress "Uploads/Insert" toolbar? This is the toolbar that's located just above the content editor. The existing icon I want to ...
2
votes
3answers
779 views

How can you determine whether an image is merely attached or has actually been inserted into a post?

Bear with me. I promise there's a question when I'm done :) In WordPress, you can upload images while editing a post and have the option to insert them into the content (or not). Regardless, the ...
5
votes
2answers
2k views

How to add a checkbox element to attachments editor with example

The code below adds a custom input field to the attachments editor. How can I convert the text input to a checkbox and get/set the value of the checkbox on load and save? Note: "input" => ...
0
votes
1answer
649 views

How to get blog-id of an MU site from functions.php

How can one determine, from functions.php, the blog-id of the site (or alternately, the path to the media directory)?
2
votes
1answer
85 views

How to test for MU via functions.php?

What is the call to determine, from a theme's functions.php whether the site is an MU site or not? Updated with answer: $dir = is_multisite() ? ...
0
votes
2answers
486 views

Where do files uploaded via Media Manager get stored in MU?

Standard WordPress sites, at least of the versions of WP I've tested, store files uploaded via the Media Manager under wp-content/uploads/ Where do these same files get stored in MU sites and how can ...
2
votes
2answers
2k views

How to tell if the user is an admin?

I need to show some info only to admins visiting a page, so I need a conditional tag to identify them. So far I have found: <?php if ( current_user_can('manage_options') ): ?> is this the ...
1
vote
3answers
695 views

single-type.php not working, delivering 404

I've created a custom post type, and have successfully added a few entries. I can call these entries out with query_posts() to show on the front page, but the_permalink() on each of them just sends me ...
23
votes
9answers
15k views

How to detect mobile devices and present them a specific theme?

I would like to create a new modified version of my theme (check my profile if needed) to present to visitors if I detect that they are visiting the site from a hand-held device, like iPhone, Android, ...
1
vote
1answer
433 views

How to list all images in uploads directory except those that are attached to any post

I've got code in my functions.php which parses the WP uploads folder and lists all images it finds there. Is it possible to place a filter here that would exclude any image that is already "attached" ...
0
votes
1answer
117 views

In creating a theme, how can i allow a user to change an image outside post/page content?

I'm creating a theme for a particular WordPress site. There's one spot in the sidebar that displays a photo. The user might want to change the photo once a week. He doesn't want to use FTP to upload ...
3
votes
2answers
254 views

Easy WordPress theme creation tutorial?

I've been looking for a truly simple wordpress theme creation tutorial and haven't been able to find one. I'm specifically looking for something with sample code, a basic introduction to the syntax, ...
2
votes
1answer
738 views

Doubled titles when using All in One SEO with custom template

I created a separate template, attachment.php, for displaying image attachments. It's relatively simple; basically a stripped down version of single.php. Everything is working great except that when ...
0
votes
1answer
1k views

Make theme settings support multisite enabled (WordPress Mu) site

recently I found a problem is that all custom theme settings written by theme author are not working for a multisite enabled site. I've checked several themes and thought this workaround may help: ...
0
votes
2answers
100 views

How can I tell what category I'm in?

When displaying a category how can I tell what category it is? Say I'm on http://www.example.com/category/quotes, how can I get quotes aside from parsing the URL? I tried get_the_category() but it ...