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

learn more… | top users | synonyms

1
vote
2answers
85 views

Where to find the code that redirects requests on the static page URL to the home page

As an example, let's say I set my "About Us" page (slug: about-us) as my home page static page. Upon doing this, when someone requests mysite.com/about-us, WordPress does a nice redirect to the home ...
1
vote
1answer
1k views

Custom Taxonomy Tag Search

I have an existing WordPress search function, what I'd like to be able to do is extend the search to the tags from my custom taxonomy...how do I do that? <form method="get" id="searchform" ...
0
votes
1answer
348 views

How do I display a greyed out next_post_link when there is no next post

Wordpress hides the next and previous post links if there are none, but for the sake of visual consistency I'd like to serve up a greyed out version of the link when there is no next or previous post. ...
0
votes
2answers
797 views

How to detect /category and /tag base pages?

In a theme I'm building, I have this structure for detecting what type of page something is. However, if I visit mydomain.com/category/ or mydomain.com/tag/, all I get is the "nothing found" message I ...
0
votes
1answer
69 views

Wordpress Beginer to Guru [duplicate]

Possible Duplicate: Where is it better to start learning how to develop for Wordpress? Hi I have recently started learning WordPress threw these video series WP101 on wptuts+ and after that ...
0
votes
1answer
980 views

What is the difference between Twenty eleven & roots framework?

Just amazed by the usability of Twenty eleven wordpress theme & extensibility of roots theme http://www.rootstheme.com Now in conflict. I want all twenty eleven features to use on extensive ...
0
votes
1answer
3k views

WP_Query with custom post type ID

This code isn't echoing out anything, even though I'm 100% positive $mixtape_id is set to an integer which corresponds to one of the posts within the 'mixtapes' custom post type $query = new ...
5
votes
2answers
159 views

Template for individual post designs

I browsed through the suggested posts, and couldn't find anything that was exactly answering my question. I apologize in advance if I'm reposting something obvious here, but there you have it. I want ...
0
votes
1answer
108 views

Getting a WordPress Debug Strategy

I have been reading up on debugging. I watched Chip Bennett's video on wordpress.tv and was inspired to take debugging seriously. What I have found in my reading up though has confused me a bit. I ...
2
votes
3answers
901 views

new theme permissions don't allow me to edit

When I use wordpress to install a new theme it creates the permissions and ownership in such a way that I can't edit the files via FTP. Any ideas? (Using Plesk)
0
votes
1answer
430 views

How to get the theme index.php listed in appearance editor

When viewing my theme files via "Appearance > Editor", the index.php file that's listed there is an index.php that's inside a subfolder of my theme directory, not the main index.php file that resides ...
0
votes
1answer
92 views

Identify current wordpress theme

I want a theme very similar to these two websites. I am a newbie to wordpress and am trying to understand what theme is it. It looks like both the sites have a similar theme. Is there a way I can fin ...
3
votes
3answers
3k views

How to remove duplicate link from add_menu_page

In the theme admin menu below, the "MyTheme Menu Label" is being duplicated twice on the sidebar menu, once for the main menu link and again for the first submenu link. How can I remove the 2nd ...
1
vote
2answers
649 views

Posts Page Featured Image [closed]

I have created a theme that uses a featured image on every page. In settings, I have setup my "Posts Page" to be "news"...how do I get the featured image from "news" to display? The following will ...
0
votes
2answers
1k views

Add submenus to Theme options menu

My theme currently has a single menu on the left hand sidebar of WP admin. I want to include submenus on that menu. How can I add, for example, a single submenu item to the "Theme Options" menu ...
2
votes
3answers
3k views

Get list of months with posts

I am trying to add a filter on my custom theme based on post month, similar with the archives but with some differences. What is the best way to get a list of months in witch we have posts? Thanks, ...
1
vote
1answer
73 views

How do you remove plugin edit option?

I would like to remove the edit option for all plugins on a wordpress site. Is there a hook/filter for doing this? It would be preferred to do it from the theme's functions file, rather than try to ...
2
votes
1answer
665 views

Best practices: Custom theme sidebar menu - hardcode or widget?

Is it best to hardcode a sidebar menu using functions.php or sidebar.php OR use the custom menu widget? Are there times when each is appropriate?
-1
votes
1answer
163 views

Creating custom function in wordpress to return data from database

I have created a custom image uploader for my wordpress admin panel and need to retrieve the data from the wp_options table. I have wrritne the below function: //function to get all slider images ...
5
votes
3answers
2k views

What filters are applied to the_content function?

How does WordPress convert raw data from the database to a readable format in the_content function? I've noticed that it applies the_content filter, but what does the_content filter do?
0
votes
1answer
388 views

How to change database values on theme update

I have a theme released into the wild but have not prefixed the post type appropriately. Yes, I know, it's a shame and I regret it :( So, I am currently using acme as the post type name, but I' like ...
-3
votes
1answer
406 views

Custom GD Star Ratings Stars [closed]

I have some custom stars that I would like to use for GD Star Ratings.. how do I load my custom star image?
0
votes
1answer
451 views

Add tags to pages

I'd like to be able to add tags to my pages just like I can with posts. What would I need to do to enable the tag editor/entry for the page editor?
3
votes
1answer
343 views

Create “File-less” Page Template in Functions.php

(By "Page Template," I mean a theme file with the "Template Name" header that can be selected in the "Template" dropdown field on the page admin.) In multiple instances, I've built page templates ...
1
vote
2answers
3k views

How to add nofollow to wp_nav_menu

I need to add an option in my theme options panel to set a specific custom menu's links all to nofollow. Does wp_nav_menu() allow this or does it require a custom walker to manually ad ...
7
votes
3answers
3k views

CSS classes for theme

Does anybody know predefined (suggested by WP) CSS classes which should I use in my theme? I have seen somewhere in Internet a list of all CSS classes, which are used in WP theme, but can't find it. ...
0
votes
2answers
64 views

Plugin is not generating title tags on any pages or posts

I am using the Wordpress SEO plug in and for some reason the plug in is not longer adding title tags to any posts or pages. I just updated my theme, and something has changed between this version and ...
2
votes
1answer
2k views

What is the best way to export and import theme options?

So what is the best way to create an export and import feature, I tried serialize() and urlencode() on an array of options to be used in a url like so: export.php?data=(long string), and use $_GET ...
1
vote
1answer
671 views

How to remove the header from all pages except home?

I have a Template Monster WP theme that I need to remove the headers from all pages except home. I have read several posts on this, but my code is a bit different. Can someone please help me? The ...
0
votes
2answers
970 views

Multiple TinyMCE Editors in one Admin Page

Please could someone give me an idiots guide to adding more than one TinyMCE editor to a page editor page please. I am creating my own wordpress theme and the multiple editors are an essential part of ...
3
votes
3answers
7k views

Get the blog page URL set in Options

I have set the blog to be a different page other than the home page. I want to have a link from single.php to this blog page. Is there any function that pulls out URL for the blog ?
0
votes
1answer
150 views

Category names on CPT archive pages [closed]

I purchased a theme and I'm trying to customize the "blog archive" pages for the Portfolio CPT that's included with the theme. The theme is: ...
0
votes
1answer
1k views

Saving multiple fields as array

I'm adding a settings section to a theme that will allow the user to enter testimonials which will be randomly displayed on the site. Each testimonial has 2 fields, author and testimonial, I've ...
11
votes
5answers
4k views

after_setup_theme always runs

I am setting up a child theme for some of my faculty members, and as a part of the theme, I would like a handful of plugins to be activated at the time that the theme is activated. So, naturally, I ...
1
vote
1answer
413 views

buddypress: how do i make the group description excerpt shorter?

I set up a theme in buddypress and i want to have a teaser section for my groups on there. It works fine but i have a problem to shorten the group description... I'm using it like this: ...
1
vote
2answers
598 views

Switching theme only changes style sheet being used

I have a plugin that I'm using to switch themes for a specific user for development. When logged in as that user they see the different style sheet but the themes files, function.php, header.php, etc ...
0
votes
2answers
301 views

How to store functions in… functions.php?

I want to do some (sometimes really complex) stuff on my pages based on pages/posts IDs', Settings API, etc. Now I've all my functions written directly within page.php file, but I don't want it to ...
3
votes
1answer
121 views

How to add paging to query

In the script below, I'm calling out from archive.php to functions.php to retrieve a list of posts that have been flagged in a category reserved for my "blog" posts. I'm listing these posts in summary ...
0
votes
1answer
183 views

Displaying wp menus by name without using theme locations

I used wp menus in the past but always registering a location and then using: <?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ?> To display a menu on that location on my ...
0
votes
1answer
68 views

Filter to remove the default password on “Your Profile” page

Whenever I go to my "Your Profile" page to edit any of the settings other than the password, I have to manually empty out the password field to avoid errors/nags. Is there a filter I can place in ...
1
vote
0answers
393 views

Nested comments in WordPress theme

I'm creating own theme to WordPress. Got problem with nested comments. I have enabled option in admin panel for two levels. And what next? I've read a lot of net articles but nothing helpful. I want ...
-1
votes
2answers
175 views

Custom Single Page Portfolio Theme [closed]

I'm thinking about creating single page portfolio theme, but I'm a little confused on how this would be done based on the different sections on the single page. I'll explain what I would like to do ...
0
votes
2answers
1k views

Custom post type posts wont show in wp_nav_menu()

I have created a custom post type and registered it using this code $labels = array( 'name' => __( 'Portfolio' ), 'singular_name' => __( 'Portfolio' ) ); $args = array( 'labels' => ...
0
votes
1answer
159 views

Overrride buddypress theme function [closed]

I'm using the buddypress theme buddyboss. the main reason was that this theme is able to manage a picture gallery (which works great). i now want to call that picture-function within the ...
4
votes
1answer
3k views

wp_remote_get doesn't work with secure connections https?

I'm querying the twitter api when I use non secure connection http:// it works fine no wp_error (but twitter exceed limit error) but when I use https:// it works in my browser I can see the json and ...
0
votes
2answers
250 views

If you were to start using a Wordpress framework today, which one would you use? [closed]

Today, there are a ton of WP frameworks out there. When I first started using one, there were only 3 or 4, and I picked Hybrid. My (yearly) hybrid license expired again, so I decided to take a look ...
0
votes
2answers
835 views

add_theme_support( 'custom-header' ) does not add option menu in dashboard

I'm writing a new theme from scratch, based off the Toolbox theme. My installation of WP is straight out of the box. I added add_theme_support('custom-header'); to my functions.php file, but the ...
3
votes
2answers
2k views

How wp_cache is supposed to work, and does it help with performance?

I was coding my recent comments widget, and using $wpdb->get_results and I wanted t use cache so it doesn't perform the query every time the page loads, so I used: $comments = ...
0
votes
2answers
78 views

Sidebar doesnt get updated?

I was trying to edit a theme by updating the style.css of it. But I also needed to add some manual html to the sidebar like ul li's . I maintained the order and updated the html od sidebar within the ...
5
votes
4answers
3k views

How to enqueue script if widget is displayed on page?

I created a widget that uses a jquery plugin, and I used is_active_widget to enqueue the script, it's working fine but it's also including the script even on pages that doesn't show this widget. so is ...