Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (10)

0
votes
1answer
152 views

User profile Pick a premade Design/theme

i currently have been working on a huge project for the last few months and im not a big coder myself but i know a bit, so i needed help, i wanted to assign each user with a already premade design ...
0
votes
1answer
52 views

Custom Query for Taxonomy

What is the correct wpdb custom query for this: taxonomy=pa_main-genre&post_type=product&orderby=name&order=asc Basically i am trying to do is,list all the terms for pa_main-genre. ...
1
vote
2answers
309 views

Selectbox in admin panel function linking to CSS

I want to link the selectbox to my CSS. Like if I click an item on the list, the background of my header will change - the header's color is in the CSS. The selectbox isn't in the html but it's in ...
0
votes
1answer
644 views

How do I create an alphabetically organized glossary of links?

Here is the kind of archive page I am trying to reproduce for my client: http://www.catwalkyourself.com/page/ready_to_wear/autumn_winter12-13/rtw12_13.php As you can see, it is a list of ...
0
votes
2answers
992 views

add_rewrite_rule and template redirect not working

I have the following pairs: add_rewrite_rule('^questions/ask/?','index.php?pagename=ask','top'); if(is_page('ask')){ $tname = 'add-question.php'; ...
2
votes
1answer
259 views

Posts not showing with custom categorybase and subcategories [closed]

Edit: Fixed. I had an error in my permlink structure. I have a problem with individual posts not showing with their URL. I have set a custom category base in Permlinks called 'story'. I have a ...
3
votes
1answer
2k views

Restrict custom post type to only site administrator role

How can I remove this custom post type from being shown in the dashboard for non admin users? /* Add Websites Custom Post Type */ add_action( 'init', 'create_website_type' ); function ...
4
votes
1answer
859 views

Post/Page Preview Template

Is there a way to have a custom template php file that is only used for previews instead of it using the single.php file? This way the user knows they are in preview mode?
0
votes
1answer
614 views

Unattaching images from a post

I currently have a custom post type in a theme I'm developing which will be used for portfolio items. So far, I have implemented functionality that allows images to be attached to a portfolio post. I ...
1
vote
1answer
577 views

Wordpress custom search url

I'm trying to chang my custom search url for SEO purpose. I found an article about how to change mydomain.com/?s=query to mydomain.com/search/query. However, i prefer to have a custom search url such ...
-1
votes
2answers
718 views

Gallery Pagination by Row

I created a picture gallery at: http://ellenandjosh.com/?page_id=5. Currently, I have a loop that displays pagination after a certain number of images : http://pastebin.com/N6nRRUei. Normally this ...
0
votes
1answer
754 views

remove everything from wp_nav_menu

My theme has three 3 menus: two that are dropdown menus and one that is different. I want to remove the div, class, etc. from the menu that is different. For Example: I have three menus topnav ( ...
0
votes
1answer
107 views

Pronamic Info Window

I am using Pronamic Google Maps (http://wordpress.org/extend/plugins/pronamic-google-maps/) to add Google Maps to my post...I would like to do a couple of things: I noticed that the balloon, or info ...
2
votes
2answers
1k views

Have multiple local wordpress installs share a wp-content folder and database

On my local machine, I have multiple wordpress versions installed so I can test the themes and plugins I develop. I was wondering if I could somehow create a central wp-content folder and database, ...
0
votes
1answer
196 views

Recent activity query WordPress

Does anyone know how I can get a list of posts based on their recent activity? Activity such as a new comment, an edit, a new post, et cetera. Some Q&A wordpress themes seem to be using this but ...
2
votes
2answers
62 views

Keep main articles and author blogs seprerate, News / Magazine like site

I am working on a project that requires a CNN like article structure, where there are main articles (published in a magazine 'volume/issue') and authors' blogs separate. The idea is to have official ...
1
vote
0answers
2k views

Extra User Profile Field Upload File / Image

I have been following the following tutorial to try and an upload form to the user profiles. ...
0
votes
1answer
141 views

404 when Previewing an unsaved draft

I just started at a new job and I'm being thrown into some pretty heavy WordPress bugs on their heavily modified system. Basically what's going on is that they have their own CMS that handles most of ...
1
vote
2answers
86 views

Output HTML only on individual post view

I am looking for a way to output some html (javascript actually) on a post view only and not on a main page, tag, category view (where WP outputs several posts). E.g it would be output on this page ...
5
votes
2answers
157 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
73 views

Semi-Private Comments + page comments -> is it possible?

is it possible to do this: User need to register and can only see comments written by himself or by an admin. Admins can see all comments create a profile page that user can see all their comments ...
2
votes
2answers
4k views

WordPress Paginate $wpdb->get_results

Due to a complex multisite config, I have a query which combines the posts from two blogs and I would like to paginate the results. I am grateful for any help. I have posted my query. ...
0
votes
1answer
350 views

Custom Post Type Rewrite To Include Parent Page(s)

I have a page title "more" with subpage "cities-guide". Said "cities guide" page has a loop that pulls in posts from custom post type "thailife_city_guide". My permalink structure is ...
0
votes
1answer
78 views

How can I add more code to this?

<?php $my_query = new WP_Query( "cat=11&posts_per_page=1" ); if ( $my_query->have_posts() ) { while ( $my_query->have_posts() ) { $my_query->the_post(); ...
2
votes
1answer
820 views

How to Save Different Usermeta Fields According to User Role?

I have created some custom roles using a plugin and I have also created custom user meta fields that are show in the Profile pages of each user (/wp-admin/profile.php) I have a problem with saving ...
4
votes
1answer
279 views

How to search in a Custom Field?

I have a custom post type called LAW. LAW has three custom fields: LAW_DATE, LAW_TEXT and LAW_AUTHOR. I want to build a search page that allows me to search independently each of these custom fields. ...
1
vote
2answers
1k views

How to set up Wordpress in the intranet?

I have been looking for an answer for long time now and have tried on a few alternatives too, but still I am unable to do it. What? : I want to set up Wordpress on the intranet in my workplace most ...
0
votes
1answer
103 views

Take excerpt of the content of the post and send it as the title to create new post

Explaining my goal: I would create the title by taking the first words of the post content. Ex: In the Admin interface would be the title field blank and the first 10 words of content would be sent as ...
2
votes
1answer
574 views

Different fields in My Profile page depending on user role

So I understand that I can user current_user_can to check the role of the current logged in user. But what I would like to do is show these different fields to the site Admin. So for example the ...
1
vote
1answer
173 views

Use post object from first query in second query

I have a post ID stored in a variable from my first query and I'd like to use that to highlight the post with the same ID in my second query, but it's not working. First loop: <?php if ...
2
votes
2answers
495 views

Post Ancestor and Child Post in Custom Post Type

Hierarchical structure of custom post type "Book" (for example). When we are on Post 2-95, I want to know: Does the post has this post ancestor(Post 1-31)? Does it have child posts(Post 3-19, ...
0
votes
2answers
75 views

How to customize and keep things up-to-date?

I made a few websites in WP (that was kind of my first serious web-related work where I started learning about more serious and concrete stuff other than homework type of programming exercises) and ...
0
votes
1answer
280 views

Custom Portfolio Page

I've a page (at /portfolio) & nav item created called Portfolio. What I'd like is for this page to either contain all the portfolio category's post in chronologically order or else all of the ...
1
vote
0answers
145 views

Track usernames with piwik

I'm wondering if there is a way to send current logged username to Piwik and display it beside the ip address in the stats. I need to see which users viewed a specific page and which users downloaded ...
1
vote
1answer
223 views

Plugin for users to create their own ads like Google Adsence

Does any one know of a plugin to allow users to create ads on a format like Google Adsense (title, some text and a link). ? Something that may require some customization may do the job. Thanks in ...
0
votes
1answer
487 views

Custom SELECT Query With Multiple Meta Values (Ordering Problem)

I have two custom meta values that I am using for an events list and have almost got everything working perfectly except for the ordering. I have two dates (event_date and event_enddate). One of these ...
0
votes
1answer
109 views

How to Remove the Custom Theme Panel from a Theme?

How does one remove the custom theme admin panel from a theme that has the options to change colours, layouts, etc? Thanks. K
0
votes
1answer
144 views

How do I add a promotional message to my posts?

I'm sure this is a dup, but I honestly can't find an answer. I'd like to add a message to the start and end of my posts: "Check out my new startup: Facebook For Dogs!" Is there a simple way to do ...
2
votes
2answers
224 views

Looking to display non-image files in Gallery with logo specific to file type

When I first began looking into this, File Gallery got me much closer to solving the problem. The only issue is that the plugin only displays the generic non-image icon when I upload a file. Does ...
1
vote
1answer
946 views

the_content() is not displaying content, why? [closed]

I have a custom theme and have built a blog page where I'd like to utilize "the loop", but get_content() is not working. Instead of displaying page content, it displays code from a template. I don't ...
0
votes
1answer
1k views

User Custom Dashboard

I wondering is there any way/plugin to configure the User Dashboard or Panel. I know there already has a plugin called WP User Frontend able to do this, but the plugin so far is not support for custom ...
1
vote
1answer
353 views

How to check user role?

I have functions that have to execute based on the user roles. How do I check the user role so that I can insert the respective function under their role? EG. if ($_GET['role'] == "free member" ) ...
1
vote
1answer
896 views

Multiple Category Search

I'm trying to create a search feature that will allow users to enter a search term and select a couple of categories. The script searches a single category just fine, but when I add more than one I ...
0
votes
2answers
98 views

Adding comments to my custom theme

I would like to add comments to my single.php file. My custom theme is "hand built" and I haven't found the proper code needed to add this functionality. Anyone have the quick and dirty on how to add ...
-2
votes
1answer
38 views

Conditional tag

I am using this code to show custom code on single posts. function post_footer() { if (is_single()) { ?> <div class="custom"> <h1><a href="<?php the_field('live_demo'); ...
0
votes
1answer
119 views

How to implement two separate featured images for each post/page

So I would like to set two separate feature images for each post/page. One would be a rectangle for use in a slider and another would be a square for use on archive pages, search pages, category ...
0
votes
1answer
284 views

Echo the Last Child Taxonomy only (not parents)?

I have a question about how to echo a child taxonomy only. My taxonomy is location. I have a parent location and child locations like so: London (parent) West London (Child) Chelsea ...
3
votes
3answers
1k views

One site, 2 distinct sections: two different top nav menus?

I have a site that is in two distinct halves. I'd like the same template to apply to the whole site (from a look & feel perspective), but for each 'half' of the site to have its own top nav menu. ...
2
votes
2answers
747 views

Add a page that appears in the backend admin that lists files to download? WP 3.3

I am currently using WP 3.3.1. Basically I just want a page for users who login via wp-login.php and see the backend admin panel to be able to see a page that shows a list of files they can download. ...
1
vote
1answer
4k views

How to add checkbox and radio button in Profile Page

I liked to customize my profile page by adding new fields to get more info from the user like "Gender" or "Speaking Languages". I managed to get the text input form to work, the problem I having now ...