Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (9)

1
vote
2answers
72 views

Posts vs. Pages

Okay so I've spent the last few weeks (on my spare time outside of work) creating a site for a client with a custom built theme. This is my first use of wordpress and the site can be seen here at ...
0
votes
1answer
127 views

Redirect members to custom page upon logging in through WP admin

When a members logs in through WP admin, I would like to redirect them instantly to a custom URL. What will I need to change to make this possible? Respond with step-by-step details would be ideal.
1
vote
1answer
309 views

How to use if condition to change $table_prefix in wp_config.php

I am testing a very big database (perhaps wp_posts contains hundreds of thousands of rows). As such, the query time, especially the searching query, is extremely long. I'm thinking if there is any ...
0
votes
1answer
71 views

Path in dev server works; same path in prod server is broken

on my development wordpress server (using Desktop Server's "ServerPress"), one my pages has a list of pdfs; each tag has this path: /wp-content/themes/accessgroup/docs/thePDF.pdf. When I upload my ...
0
votes
1answer
41 views

“about us”, “ contact” sections should be article(post) or page in the simple small Business website?

I am new in WordPress i am rails programmer that need to do for small Business only WordPress website with : main page, about us, contact + few articles(posts) that will be in the main page "about ...
0
votes
1answer
136 views

Adding pagination to sub-wp_query within a singular post page

So my custom wordpress theme/site has a number of venues, e.g. "foo" which has a number of events and reviews. So a venue ends up with a URL like, http://www.example.local/places/my-place-name/ ...
1
vote
1answer
869 views

Remove “Parent” Selection When Adding/Editing Categories?

I've been trying to find a way to hide/deactivate the Parent dropdown menu from the Posts -> Categories screen. http://example.com/wp-admin/edit-tags.php?taxonomy=category I was able to hide the ...
-1
votes
2answers
3k views

Custom page template not working

I followed this tutorial for the page specific template -- http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates Created a page through wordpress admin panel - Blog Page URL like -- ...
0
votes
1answer
371 views

Custom Post Type Single Loop Outputting Wrong Post

I have been unable to get my single-portfolio.php template to behave properly. So I have a custom post type called portfolio. I am displaying all of those posts in the front-page.php and it works ...
0
votes
1answer
91 views

Is it possible to integrate a custom login feature with wordpress?

I'm looking for a way for members of my site to be able to post comments on the site's wordpress blog, and have their name and avatar from the site show up next to their comments. Is there a way to ...
0
votes
1answer
2k views

Custom Post Type Pagination 404 Error (if paged>=2) [duplicate]

I coded a WordPress theme. I added a Photo Gallery with custom post type. But if paged>=2, it gives 404 error. If you open my web site link and click Tümünü Göster (Show All) button, you can test ...
1
vote
0answers
30 views

Create custom page and add it in nav menu by code

I am creating a plugin, and this time it should: create a page and add it to the nav menu, all by code ... Here is an example: http://img823.imageshack.us/img823/8531/09072012205520.png
2
votes
1answer
109 views

Remove custom posts that match taxonomy value

I have a custom post type 'listings' and within that a taxonomy called 'status' where the posts are either 'standard' or 'premium'. What SQL query (or other method), could I use to delete all custom ...
0
votes
1answer
320 views

wp_rewrite not working on third level url

I have the following code : global $wp; $wp->add_query_var('akey'); $wp->add_query_var('sort'); $wp->add_query_var('paged'); ...
0
votes
2answers
641 views

Custom Columns WordPress Admin

I am just about finished creating custom columns through the WordPress admin panel. The custom post type I am using is called "slides". I figured out how to add the column titles and all of the ...
0
votes
2answers
265 views

CSS Customizations for certain page

I've been using Wordpress for a while, and came to a point where I need to make css customizations, but only for a certain page. I know that one way to do this is to use conditional tags: if ( ...
1
vote
2answers
133 views

Using my WordPress menu on another platform

I have a WordPress site and am adding a Shopify-hosted e-commerce section which will be hosted on their servers and accessible via a subdomain. Is there any way to mirror the WordPress Navigation for ...
0
votes
1answer
2k views

Redirect to requested page after (custom) login

I am developing a WP site locally and I want the content to be viewable only to users that have logged in, except for the front page that's visible to everyone. When a non-logged in user clicks on a ...
2
votes
1answer
2k views

How to Remove Certain Screen Options and Table Columns from post type in wp_list_table?

On the page where we list all posts made: example.domain.com/wp-admin/edit.php There is a Screen Options tab in the upper right corner. Upon clicking this, a menu slides down. Contained within this ...
0
votes
1answer
627 views

How to sort posts in a custom post type by title in ascending order by default?

So I am using a custom post type to create a listing of businesses. Each post made, contains information about each business. The title of each post is the name of the business. When I go to the menu ...
2
votes
2answers
2k views

How to filter get_avatar?

I want to use local avatar system for my wp website , I want to filter the get_avatar() function so it will return the avatar from my server instead of the default gavatar . I have the following code ...
2
votes
2answers
407 views

How do I override part of the main loop in my child theme?

I have a child theme based on the twenty ten theme which I am happy with except for one thing. My gallery posts (I am a photographer so the goal of my blog is pictures) do not show any images from ...
5
votes
1answer
314 views

Limit Media Library to Given Folder

I have made a plugin that uses the Media Library to allow users to upload files to a specific directory - using the upload_dir filter. I would like to know if there is a way (i.e. a filter) I can use ...
12
votes
2answers
546 views

New WP_Customize API - how does it work under the hood?

I noticed that if you make changes trough the new "customize" feature, when you navigate on a different page within the iframe preview document, your changes still apply, even if they are unsaved. It ...
0
votes
1answer
2k views

Removing Fields From the Profile Page of Theme My Login Plugin

I would like to remove fields from the profile in Theme My Login. I want to remove everything except email and password field. I am able to hide fields using a little jQuery. But un fortunately I'm ...
1
vote
1answer
1k views

Custom Post Type Pagination Doesn't Work in Wordpress 3.4

I have a problem when using Wordpress 3.4. My "Products" custom post type pagination doesn't work. Here is the code I use $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $loop = new ...
-1
votes
1answer
181 views

Redirect Loops Problems

I don't know what happened actually. Yesterday, it was just working fine. I recalled what I did to put me in this difficult situation this morning. Yesterday, I was just editing posts with ...
0
votes
1answer
40 views

I would like to display different text on different pages

I have at the very top of my page a line of text within a h1 tag thet I use for seo reasons. the text and html around it is written in my header.php. but I would like to write differnet txt so it ...
0
votes
1answer
130 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
48 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. ...
0
votes
2answers
287 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
2answers
927 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
244 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 ...
2
votes
1answer
1k 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 ...
2
votes
1answer
607 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
498 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
447 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
693 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
669 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
101 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
164 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
121 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
154 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
68 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
1answer
3k 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
323 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 ...