0
votes
1answer
249 views

Determine image height within Fancybox

I have single.php rendered within Fancybox. For the purpose of resizing an image within single.php I am obtaining the image height in javascript using: var contentheight = ...
3
votes
1answer
2k views

Set a cookie in WordPress, using a select form and Jquery

Hi Guys and thank you in advance for giving me some attention with this. I have this code in wordpress that I just can't get right. I have the US states in a drop-down form. When the user chooses an ...
0
votes
1answer
893 views

Create a page Meta Box listing all blog users

I have a custom post type where each post can only be seen on the frontend by one specific user. I have figured out how to make an archive template where only posts with the meta _allowed_user = ...
6
votes
1answer
6k views

remove links from images using functions.php

I am looking for a way to remove the attachment link from images in the post content. I would like to add this to the functions.php in my theme. I know you can disable this in the post on a per ...
0
votes
1answer
847 views

Comment submission & navigation redirects to default language

I'm using qTranslate for multi-language & wp-commentnavi for comment navigation. The style of my base permalinks are like so: site.com/ -> for default language site.com/en/ -> for ...
8
votes
3answers
26k views

How do I get WooCommerce to automatically recreate pages? [closed]

I had to uninstall WooCommerce plugin (I deleted the tables it created as well) and now I reinstalled the plugin and I doesn't automatically recreate the WooCommerce Pages. Am I stuck having to ...
0
votes
2answers
271 views

Deleting old posts

I have around 30 old posts that I want to delete on my blog. Can I just delete them permanently or should I worry about the "errors" I will get on my google webmasters tools and redirect them somehow? ...
2
votes
0answers
365 views

sort order for a custom post-type [closed]

How do I specify a sort order for a custom post-type like I can do with the pages post-type? All I have been able to find online is various plugins that do it for me, but I'd prefer not to use a ...
0
votes
1answer
313 views

Can’t use a specific custom URL (slug)?

I’m having some problems understanding an error I’m getting. I have a page which is called “pitch” and as such the URL and the slug should be “pitch” as well, so: www.my-domain.com/pitch/ But when I ...
1
vote
1answer
208 views

Tweets based on Twitter hashtag into a pending WP post

If a twitter user sends out a lot of content during the day, not all of their followers see it. It'd be good to have a way to 1) curate those links for followers 2) get more traffic back to your site ...
2
votes
1answer
2k views

Create Posts using Import>RSS/WXR/XML and pass values to Custom Fields

My problem is simple. I need to make a lot of posts containing image url's for a "photo gallery" page. I've read up a lot on creating posts from RSS feeds and imports. I've been successful at creating ...
0
votes
1answer
197 views

Adding a WordPress Widget to a settings page

I'm looking to put widgets in my plug-in settings page like the ones in the WordPress Dashboard. The action to register the widget is add_action('wp_dashboard_setup', 'register_widgets' ); I ...
0
votes
2answers
2k views

NextGen Gallery + GalleryView by John Brien Plugins

I've installed the NextGen gallery plugin (http://wordpress.org/extend/plugins/nextgen-gallery/) and also the galleryview plugin by John Brien ...
2
votes
2answers
5k views

Create a Static HTML Site from WordPress

A friend of mine is investigating the use of WordPress for a dynamic site with some hierarchy. Really, at the moment he just wants "nothing fancier than photos and links between pages," but knowing ...
0
votes
1answer
2k views

Unable to sort wp_query by date/time with multiple meta_key s

4th EDIT 11/17/2011 I spoke too soon. Now I have all the posts showing up but the total events does not seperate the events by day after I moved the endif; and endwhile; I posted the modified code ...
1
vote
2answers
471 views

Modules with meta box implementations

I am looking for some modules that implement add meta box as shown here perhaps with some ajax magic. If you have any modules I could check out would be welcome.
2
votes
2answers
1k views

Custom Post Type Templates?

Is it possible to set up templates for custom post types? For example you have a portfolio page with 4 different variations of layout and you want the user to be able to pick which layout they want ...
0
votes
1answer
3k views

Displaying a specific post in a wp query by post id

I'm simply trying to display a specific post id from my custom post type 'homepage_video'. I'm sure that this is the correct code but it seems to be returning all of the posts rather than just Post Id ...
0
votes
1answer
340 views

WordPress built-in Custom Background

Is it possible to enable the "Custom Background" function of WordPress (add_custom_background() ) in my own theme-options page? Thx for helping!
0
votes
1answer
615 views

Anonymous function is executed twice in wp_head while added from the_posts filter?

I know this sounds complicated, so bear with me. I'm trying to add certain custom css styles based on the shortcodes(if any) in the current post/page. function load_shortcode_styles($posts){ ...
0
votes
1answer
159 views

wp_nav_menu with default pages menu

i'm using wp_nav_menu to generate a navigation menu for my theme. It works fine by selecting my created menus. But, what if i want to generate a list from my already created pages and subpages in ...
0
votes
1answer
311 views

How do I call an external php non WordPress class into functions.php?

All my WordPress files are in: /httpdocs/news/ and the classes I want to call are in: /private/classes/ Would I use the include_once() function or is there a WordPress function? And how would I ...
0
votes
3answers
454 views

Unable to display favicon using get_favicon()?

I'm using fetch_feed (based on Simplepie) to display an array of RSS feeds (favicon & headlines only). Documentation on the simplepie website says to use get_favicon in the stylesheet. And I'm ...
0
votes
1answer
4k views

Display Child Categories of Current Post ID

I'm starting to love this place more and more, super helpful! Anyway, todays dilemma is as such: I want to display as a list the child terms only, of a specific parent term, of a custom taxonomy, ...
1
vote
1answer
112 views

wordpress to import joomla articles

I am using wordpress plugin Joomla 1.5 Importer to import articles from joomla. My joomla version is 1.5, but when i tried to import i get this error Warning: mysqli::mysqli() [mysqli.mysqli]: ...
0
votes
1answer
452 views

Why does the first page of one category redirect to empty page 4?

When I load this URL on my WP e-ecommerce site, it 301 redirects to page 4 which does not exist, and appears as a page with empty contents: Go to this URL: ...
1
vote
2answers
1k views

How do I search inside specific taxonomies in Wordpress

I am trying to search for posts in specific taxonomies but any time I search, I get results from all the other pages instead of Wordpress searching within the selected category in the taxonomy. I ...
0
votes
1answer
429 views

how to create a sub section in posts

i need to create multiple section in my post. for eg: i have a wordpress post called football with the perma: http://mysite.com/football football contains sub section like ...
0
votes
1answer
383 views

Count of posts with meta_key filled in?

Working on upcoming events list that returns posts fine in a custom query. In the custom post type 'event' there are multiple events within a date range. I want to display all upcoming events in ...
0
votes
2answers
374 views

Wordpress Categories: Function using custom SQL to return array of specific category IDs

I'm developing a custom theme which uses categories for positioning, all of which begin with an underscore (e.g. _position1). I have an SQL query as below to get a list of these categories (those ...
0
votes
1answer
490 views

How can I wrap html around the output of the_time function?

My current code in functions.php: echo '<div class="post_date">'.the_time('d', '<div class="month">', '</div>').the_time('F', '<div class="day">', ...
0
votes
1answer
1k views

Change the display of Settings API (do_settings_sections)

I am working on a plugin which uses Wordpress Settings API. I notice that the functions do_settings_sections (and do_settings_fields) display the fields using TABLE. How do I change its formatting? (I ...
2
votes
1answer
1k views

Set cookie then immediantly refresh the page

I wrote a small WordPress plugin (mobileesp-for-wordpress) that will redirect mobile users to the mobile site. It's based on mobileesp. The plugin itself works fine the problem is I added an option ...
1
vote
1answer
335 views

How do I reset this wp_list_categories query?

How do I reset a query that generates a list of categories with wp_list_categories? The query below builds a two column list of categories that is then displayed with the second code chunk. I'm ...
1
vote
3answers
485 views

Best option for photo/gallery handling?

Before I finally start blogging there's one last question that I need help with. My blog will be photo-focused. We're talking about 70-80% of photos compared to 20-30% of text. There might be some ...
4
votes
1answer
1k views

Add custom meta to nav menu items

I need to attach meta data to every menu item, with a key 'foo'. Is it possible to do that, without editing core WP? A quick look at the nav-menu files showed that no hooks exist near the place I ...
0
votes
2answers
2k views

Unable to set Custom “Link URL” for Featured Image, and More?

I have an issue that I believe can be solved one of two ways. I am using Featured Images in posts for content on a home page slider. What I would like to have happen is to have the destination links ...
1
vote
1answer
234 views

3 different mail notifications

I'm building a small tracker and need to send mail notifications on specific actions. Thought-out notifications: Administrator gets a notification email when a new ticket is published Author gets a ...
0
votes
2answers
651 views

customizing wp user with custom fields

I want to allow the admin of a site i'm building to highly customize the wordpress user. This will be a highly advanced plugin so I'm fine creating a whole new page in the admin to do this ...
1
vote
1answer
365 views

using custom taxonomies on non wp table?

I'm building a program registration system that will have a complex data structure. There are programs (custom post type, CPT), teachers (CPT), registrations (custom table and meta table), payments ...
3
votes
2answers
4k views

Using paginate_links() to generate “1, 2, 3 … 10, 20, 30, 40… 55” paginations

I found this code : // Get total number of pages global $wp_query; $total = $wp_query->max_num_pages; // Only paginate if we have more than one page if ( $total > 1 ) { ...
0
votes
1answer
32 views

Making a Plugin work based on URL Location

Is there any way to make my plugin work based on a URL instead of creating a page and attaching a shortcode? IE http://mysite.com/myplugin and that would bring up the starting page of the plugin
1
vote
1answer
314 views

How to Debug: My Plugin Interferes With My Theme

I'm learning how to write a plugin. My plugin is a google map that places markers based on the selected criteria. It works fine. The problem is that it interferes with one part of the theme I'm using. ...
2
votes
1answer
2k views

Create a new page in WordPress theme

I am creating a functionality in WordPress where I need to create a new php page and have to link it in the menu section of my website. Though I can create a page from the dashboard but due to some ...
0
votes
2answers
131 views

Tips for managing code when developing a parent theme framework

I have started work on an open source theme framework that pulls in lots of great code & resources from elsewhere. For example it uses: jQuery Option Framework Theme LESS etc etc. Most of ...
0
votes
1answer
159 views

Secure Wordpress: Change admin

I'm sorry if this is an extremely stupid question. I've been looking for ways how to secure my WP and a lot of websites suggest to create a new admin user account and delete the old one. Now, if I ...
0
votes
1answer
315 views

Clean links in: the_author_meta('description')

I need to clean any links returned from the_author_meta('description') The code I use is simply that: <p><?php the_author_meta('description'); ?></p> I Searched old question but ...
1
vote
0answers
447 views

How to remove/exclude specific posts in a category from RSS feeds after particular date [closed]

I want to remove/exclude some posts of a category from RSS feeds after particular date. First of all i want to specify that same requirement i already accomplish for front page posts. I have two ...
0
votes
1answer
300 views

Custom Post Type, Pagination and 404s?

Head is getting melted with this pagination crap in WordPress! What am I doing wrong here… Test site http://www.clients.eirestudio.net/savvas/reviews/ Code <?php $paged = ...
0
votes
1answer
517 views

meta_query displays all results and none, my query is wrong

I´ve read almost this articles but unfortunately my query is no working, I think i´m very close but could be so far away. I´m trying to get metadata using a custom form with method get, $rob = ...

15 30 50 per page