0
votes
2answers
26k views

How to Create a Custom WordPress Navigation Menu with the Code?

Without using plugins, how to create a custom WordPress navigation menu with the code? I have Wordpress ver 3.2.1 and Buddypress ver 1.5.1 I would like to create a menu. I would like to place the ...
1
vote
1answer
392 views

Displaying icon image for WordPress post formats, is there a cleaner way to do this?

The code I am currently using in the loop is in this code snippet: https://gist.github.com/1316622 This just seems messy, and long. I am thinking the best method would really be to use CSS ...
1
vote
1answer
582 views

Displaying a message when plug-in is deactivated

I'm using the following code to deactivate my WordPress Plugin if the requirements are not met public function activate() { if (!$this->check_requirements()) { ...
0
votes
1answer
413 views

Sorting by 2 Custom Fields + Post Title

So I've successfully sorted my custom post type "property" based on it's city and state using this: <?php $querystr = " SELECT wposts.* FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta, ...
0
votes
1answer
1k views

admin_notices not displaying in plugin

I know I'm probably doing something dumb here but I just can't get this to run. I'm trying to set up a little API for my plugin and to create a class to display admin notices a little easier. Here's ...
0
votes
3answers
21k views

How to add user registration and signup in WordPress and create members only page?

I'm trying to add a user login system in my WordPress as like regular PHP sites. when a user logged in then , i wanna show the specific page content otherwise no. Is there any process to add nice ...
0
votes
1answer
874 views

Why does this search.php not work?

This search.php shows all the results from a said search however, doesn't include the title, The Search Results For...... and search query amount; or even the no searches found and prints the ...
1
vote
1answer
156 views

how to interconnect custom post types?

I'd like to make a site about choirs, composers, conductors and singers. And so far I decided that I need to make a custom post type for "piece" -- any piece can be associated with choir[s], composer, ...
5
votes
3answers
183 views

What difference does it make if I enable support for video post format?

I am sorry if this is stupid. I can't seem to figure out what special things it does. If I embed a youtube video(embed/iframe) it works for both standard and video format. Surely, I am missing ...
0
votes
1answer
1k views

wordpress plugin for database field search [closed]

Is there any wordpress plugin to search for people's names in the database? If i have a column 'name' , i need to provide search functionality over it, give all the matching results for that column. ...
1
vote
2answers
787 views

Moved my Wordpress site and now it can't read the theme

I moved my Wordpress website on Friday (so DNS propagation should be long finished) and now the site has no theme. I spent time yesterday re-installing the theme and Wordpress but to no avail. It ...
1
vote
2answers
534 views

Search XML file from within Wordpress?

We use Jira internally for an defect mgmt system. We want to provide defect tracking to our clients. We cannot expose Jira to the web, but we do have our main site hosted on WP 3.2.1 I can export a ...
0
votes
1answer
337 views

Only show content slideshow if “slideshow” custom field exists

I am developing a theme for general release and there is a large content slideshow on the homepage. I have included a checkbox meta box in the post edit screen that allows users to determine which ...
0
votes
1answer
3k views

Create a list of recent Custom Post Types posts

I've been using this snippet to generate a list of recent posts from particular categories in a widget. I'm currently restructuring the site using custom post types and taxonomies and want to ...
1
vote
3answers
362 views

Hide extra menus from Wordpress Dashboard

How can hide extra menus from Wordpress dashboard. That is some plugins gives plugin settings menu may under Settings or anywhere else, how we can hide all this type of extra menus while plugin active ...
1
vote
2answers
241 views

Include template before a loop

This is my category / archive page i want to include a template before loop but i cant get posts based on category, it showing latest post only on every page. when i removed this line before the ...
1
vote
1answer
192 views

How to add a link(href) so when i click it, it renders (shows all) posts of custom post type (rich_media), from the current category?

I am trying to set up an image menu to show "all posts", "all videos" (custom post type: rich_media). I want to have an individual image for each post type, and by clicking it I want to show all posts ...
0
votes
1answer
560 views

Guest author's post not display in author template

I am using this filter to display guest author on post, but i want guest author's posts to appear in the author.php template also. This is my guest author code (inside functions.php). <?php ...
3
votes
1answer
2k views

Single Page View for Paginated Posts

Okay, so you know how you can break up a wordpress post by inserting the next-page/page break quicktag. Then, using the wp link pages function in your template, wordpress will generate page 1, 2, 3, ...
0
votes
1answer
331 views

Wordpress won't let me use a page slug of 'feed'

I want to make a custom feed page* with the slug of 'feed', but when I try to save, Wordpress changes it to 'feed-2'. Is there a way I can force Wordpress to let me use a slug of feed—or, if it's ...
0
votes
2answers
825 views

How to load previous or next attachment with jquery ?

When i am on the single.php page, i show the first image attachment. then i would like to load the next (and previous) image attachments without reloading the page. so in single.php i started with ...
0
votes
1answer
256 views

Best way to categorize/populate a magazine style layout

I'm taking the reigns of an existing Wordpress site that has a magazine-style home page with sections for featured articles, upcoming events, different categories of articles, etc. Currently, these ...
0
votes
2answers
3k views

Standard permissions for wordpress; Plugin installation asks for FTP credentials

I'm on a server that does not have FTP installed and will not have FTP installed. I have another website that I've been able to install plugins in before, including the one I'm trying to install now ...
-1
votes
1answer
1k views

Worldpay Integration in Wordpress

Hi: I am working on a fast food website project, the theme is configured and all the data has been placed related to fast food, like the Order Menu, The payment method that will be used to order food ...
0
votes
1answer
136 views

Add Content to Content()

The Question::: This is a strange question but I need to add content to content() in page.php. How do I do this? The Why::: You see there's a plugin that uses the [plugin id="1337"] and I am linking ...
2
votes
3answers
2k views

How do I create a widget that only allows a single instance?

How do I create a widget that only allows a single instance of a widget to be added through the Wordpress interface? The default behaviour of widgets allows multiple instances to be added. I am ...
1
vote
1answer
6k views

Pagination on a custom page template

I have set up a custom post type called 'Events'. For reasons that I'm not going to get into, I chose not use archive-events.php as the archive template for my Events. Instead, I decided to create a ...
2
votes
2answers
4k views

Custom post types and custom variables — add_rewrite_tag() question

I'm stuck on this, and have no idea what I'm doing. I have a custom post type called areas, that is hierarchical. We want to pass a variable into the page, and have it be pretty. Currently, it is: ...
0
votes
1answer
1k views

Changing fonts (and related settings) in wordpress theme

I am using wordpress for my blog/site. I am using Freshnews theme from woothemes as the theme for the blog. Here is the link: http://demo.woothemes.com/freshnews/ The font is not that good and it is ...
0
votes
1answer
484 views

Plugin: Front-end Editor - User role specific editable content?

(using scribu's front-end-editor) Currently I have several custom fields and taxonomies that appear on posts as they are created by users. Each author is able to edit only their own posts. However, ...
1
vote
2answers
164 views

Is there a way to have the view link on manage posts page to open in a new window or tab?

Hi I am trying to figure out on how to get the "view" link on the manage posts / custom post types and pages to open in a new tab or window. I know it is probably possible to do via the ...
1
vote
1answer
151 views

Outside url for post content

I'm creating a widget to embed from outside of wordpress that will contain the post content. I don't want to use the permalink because that will include the whole page. I'm thinking I can grab the ...
1
vote
1answer
412 views

WP_Query on custom taxonomy works fine but fails if run through wp_ajax_

I'm using WP_Query to collate some info about posts based on their custom taxonomy. My arguments are as follows: $args = array( 'posts_per_page'=> -1, 'post_status' => 'publish' ...
0
votes
1answer
283 views

How to make a Post Tag primary?

We are trying to rethink how a blog is laid out, by using Tags as primary headers for each post, instead of Categories. In order to do this, we have to set a Tag for the post as Primary. So, we are ...
5
votes
1answer
1k views

Add existing images from Media Library in to custom gallery

I have [gallery] inside the post, and I'm interested in a way to add already existing images from media library in to this gallery? once I trying add any image I have only one option - insert into ...
1
vote
1answer
798 views

Posts archive index pagination in a static page custom query

In WordPress, I have a page for News that is using a specific page template I created. This page is populated by news posts assigned to the news category. I need to show only two of the latest news ...
1
vote
1answer
142 views

Addition Text to Post Titles (Custom Post Types) in RSS

First, I have used this code to add my custom post types into my feed (below): function myfeed_request($qv) { if (isset($qv['feed'])) $qv['post_type'] = get_post_types(); return $qv; ...
1
vote
1answer
935 views

How to rename wordpress Widget

I want to rename "Widget" to something else Like "Block" or something else. please help me. EDIT Per the user's comment below, she wants to change class="widget" to class="block" (or any ...
4
votes
2answers
4k views

Get top level page parent title

How do I get the page title of the upper most parent page of the page the visitor is currently on? Let me describe: I have this page structure: Example Title 1 Example Title 1-1 Example Title ...
1
vote
4answers
637 views

How To View Site from Non-Logged-In User's Perspective

I am working on anew blog. I am logged in as administrator, and above every post there is a option to 'edit this entry'. Can I have WordPress set up so that even is I am logged in as administrator, I ...
1
vote
1answer
416 views

Search breaks when querying main loop for category

In my theme I provide an option for users to set a 'blog category' that queries and displays only posts from that category on index.php using WP_Query: $shortname = get_option('of_shortname'); ...
1
vote
1answer
643 views

Arguments ignored/markup changed in wp_nav_menu if no menu is selected

I've created a menu using wp_nav_menu in my theme using the most simple setup as possible: wp_nav_menu( array( 'theme_location' => 'my_theme_top_menu') ); And in my functions.php: ...
1
vote
1answer
147 views

Limiting the posts on the homepage to one taxonomy? [closed]

I've currently got this code on my homepage to display one random post from the Work section on my website - this is a custom post type utilising taxonomies - not blog posts: <?php ...
2
votes
2answers
396 views

Organising Taxonomy categories

I have the following code in my sidebar to list all the taxonomy categories. <div class="left"> <h1>Categories</h1> <?php //list terms in a given taxonomy ...
1
vote
1answer
1k views

Add a new page to wordpress programmatically

Is there a function in the wordpress api that lets me programatically add pages ? something on the lines of : add_page($title,$content) Is there such a function ?
0
votes
1answer
101 views

How to update custom field of a posts in a particular category

I have a lot of posts under category 'tution', which has custom field called 'video'. i need to update the 'video' value with same youtubeurl i.e all post would have the same value in the custom field ...
-3
votes
1answer
1k views

Display posts in row Horizontally [closed]

On index.php page, I am showing only thumbs and two custom fields. How can I set specific number of posts in one row like this one; http://www.whatmobile.com.pk
2
votes
2answers
853 views

Check to see if page exists problems

I've created a class to dynamically create pages. I'm checking to see if the page exists by comparing the new page's title to post_name. The comparison seems to work ok, but even if there is a match ...
1
vote
2answers
368 views

Help Me Choose RSS or XML-RPC

Scenario: I have a mother site example.com which has a blog and say about 12 category. I also have 12 other wordpress site. Some in the subdomain of example.com and some are different domains. 12 ...
0
votes
1answer
317 views

Reusing pictures in gallery from other posts

I have two pages where I want to use galleries with the same pictures (those pages are in different languages). Is there any way to create a gallery with already uploaded images in the other post. By ...

15 30 50 per page