-1
votes
1answer
503 views

Fix encoding ’ [closed]

I moved my hosting provider and now the encoding is messed up. See here for example. In the past commenting out the follwoing lines fixed the issue for me, but not this time: ...
0
votes
1answer
78 views

I get “Cannot modify header information - headers already sent” when I change my theme

I get this error when I change theme in my wordpress. *Cannot modify header information - headers already sent by (output started at ...
1
vote
1answer
2k views

Add a Fancybox automatically to post type “post” images

Currently, on my homepage (which is a list of posts), if you click an image it opens in the same window as a full size image. I'd like to change it so that when a user clicks said image it opens into ...
0
votes
2answers
2k views

Use have_posts() with array of post results retrieved by $wpdb->get_results

I don't know if I'm retarded, crazy or just plain genius or not, but I've decided to use tags as a way to link content site-wide (a big ol' many-to-many relationship website for archiving various ...
1
vote
2answers
762 views

How do I remove weird characters in text?

Help, my site is suddenly populated with weird characters, like this: “Do what you love and do it often,†“If you don’t like your job, quit,†and “Travel often; Getting lost will help ...
1
vote
1answer
809 views

How to handle shortcodes when using the JSON API

I'm wrangling a little logic problem: I'm making a single page WP theme which uses the JSON API for the content and Mustache style templates for the presentation... However, shortcodes? What would be ...
0
votes
3answers
1k views

How to get post ID with hooks publish_post, new_to_publish, etc

I have two plugins, one uses the function wp_insert_post(), the other has a code like this: add_action('future_to_publish', 'myFunc', 10, 1); add_action('new_to_publish', 'myFunc', 10, 1); ...
5
votes
1answer
533 views

WordPress Posts By Date/Day?

I want to output on the homepage the posts from the lastest 3 days. Like this: 30/03/12 post 1 post 2 post 3 29/03/12 post 1 post 2 post 3 28/03/12 ...
1
vote
1answer
173 views

Why do I lose the content of meta boxes when I leave the page?

So I've been coding a theme and I'm working on a custom post type. When I edit a custom post and save the changes (click Update) everything is ok. But - I noticed that when I leave the Edit page open ...
0
votes
1answer
926 views

making images scalable for responsive designs [closed]

Working on first responsive website template; layout is part fluid, with fixed sidebars, using media queries. I want to have some of my images be scalable. Per this article ...
0
votes
1answer
255 views

How to get the theme directory URI?

I want to get the theme root URL with PHP. What would be the best way to do that? There is a function called get_theme_root() which gives me the path but not the URL. Maybe just get the current ...
0
votes
2answers
785 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
1answer
4k views

Redirect to post after submission with Gravity Forms? [closed]

How do I redirect to a post after submission with gravity forms. It gives you the option to put in query string values but when I add {post_id}/{Video Title:1} I get mysite.com/?123/name+of+post and ...
1
vote
2answers
834 views

How to map permalinks with accented letters to sanitized slugs?

To keep legacy entries on a blog hosted on TypePad on sync with a new WordPress installation... How do I map this permalink with accented letters: domain.com/no-es-fácil-alejarse-de-la-política to ...
2
votes
1answer
3k views

custom post types, wp_get_archives and add_rewrite_rule

I've searched to see if anyone came up with a solution to a peculiar problem I'm having but did not find anything that was close to what was happening in my case. I have two custom post types - let's ...
2
votes
2answers
432 views

How to order results by date and meta key?

I'm using wp-postratings to rate posts which stores the rating as a custom meta value ratings_score. It gives you the option to use r_sortby to order the loop by highest rated but I want to give it a ...
2
votes
2answers
2k views

require.js to load javascript

whilst wp_enqueue_script seems to work it's not really elegant. I'm currently making a WP front end which uses MVC (backbone.js) and has literally 30+ seperate Model/View/Collection/Controller scripts ...
0
votes
2answers
160 views

Importer failed to import posts as format “day and name”

I had a blog exposing posts as "day and name". After exporting that blog and importing it on a new installation of WordPress I can't see the posts in that format, only in the default one: ...
0
votes
1answer
45 views

how would I include some html in the header section of a wordpress plugin? I get an error

When I include some div into a plugin I am creating I get an error when activating the plugin. "The plugin generated 33 characters of unexpected output during activation. If you notice “headers ...
2
votes
2answers
439 views

root-relative links for multiple parked domains

I have five domains pointing to the same server/wp installation. the domain names are important and my visitors need to be able to stay on their preferred domain as they surf through my site. how do ...
2
votes
2answers
4k 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
2k views

How to Insert Self-Hosted Video in WordPress Post

Does WordPress have an easy way to insert video in a post? I am not referring to YouTube, Vimeo or other hosting sites, just video I upload myself on the server or through the Media manager. I have an ...
0
votes
1answer
34 views

What happens to the text in functions.php file outside of the php enclosure?

I have a very basic question. In the functions.php file of a theme, what happens to the text that is outside a function and outside the <?php ?> tags? Can I place notes before and after the ...
4
votes
2answers
302 views

Why do I lose all the slashes, i.e., “ \ ”, in my blogs when I import XML files by the WordPress Importer plug-in?

When I want to import the XML files with the aid of the WordPress Importer plugin, the blogs imported will lose all the slashes, i.e., "\", which are really contained in the XML files imported. Since ...
0
votes
2answers
257 views

Wordpress Front-End Theme Editor

I would like to change my option panel to the front-end. So user can see whats happening with the site. Changes must be real-time. Searched allover but cant find a way to solve this.
1
vote
2answers
767 views

Wordpress category loop offset possible?

I have been on this for a while now and haven't really come across a solution to filter the posts on a category page using a sort of offset in php. There are plugin for posts and pages but I am ...
1
vote
1answer
90 views

where is the code that executes the template hierarchy?

I can see a picture of the template hierarchy here, but where is the actual wordpress code which decides that it's a "category page" or an "archives page" or a "search page"?
2
votes
1answer
745 views

wp-types - How to allow custom fields to be saved in the revision

I am using this plugin: http://wordpress.org/extend/plugins/types/ When I use the revision, it does not saves the custom fields data. Is there anyway to do it? Thanks
-1
votes
2answers
2k views

Scan for first image in post and display it [duplicate]

Possible Duplicate: Retrieve 1st image in post and set it as featured image, when post is saved/updated VT-resize image and display it ok guys, I have this script which I modified in ...
1
vote
1answer
176 views

Travel Blog Plugins

I'm using Wordpress to create a blog of my travels later on this year. I would like the blog to have the following features my posts to be geo-located a map containing the locations of my posts ...
0
votes
1answer
312 views

this jQuery function works perfect in static html page but not on wordpress

I am using wp_enqueue_script to do this. If I try to do something else lets say popup a dialog, it works but the code below does not. Can someone tell me the problem. thanks. var $j = ...
0
votes
1answer
385 views

Insert PHP code in Text

I have this code for insert a permalink but doesn't work, return exactly code: $text = '<form><td>Permalink to: <?php the_title();?></td><textarea cols="85" rows="2" ...
1
vote
3answers
335 views

Mailing list sign up box [closed]

I'd like to add a sign-up box with name and email fields to my site. I'll want to add a title so people know it's for my mailing list, and a note to say that i only send mails out occasionally. What ...
1
vote
1answer
69 views

Introductory paragraph only in list of blog posts

My blog is displaying the full post of my latest blog post, instead of an introductory paragraph only. How do I make it show an introductory paragraph only, so readers need to click into the full ...
0
votes
1answer
497 views

How to move an image in a plugin to the upload directory and make it as a media of wordpress?

How to move an image in a plugin to the upload directory and make it as a media of wordpress? I would like to use them in posts. Expand question: I would like to generate images using other ...
0
votes
1answer
2k views

How do I add custom attributes to javascript tags in Wordpress?

I am looking to enable CloudFlare's RocketLoader feature that enables asynchronous loading of Javascript for my Wordpress site. The problem, however, is that there is one plugin for that I want to be ...
2
votes
2answers
711 views

Can I create a page template, use it once, then hide/remove the option to use it again?

I am working on a WP theme/project that includes several custom page templates that will only be used once each. For example, there is a page with a map and search form for finding things on the map. ...
1
vote
1answer
491 views

Is There A WordPress Plugin That Produces PDFs of Posts Locally?

Most of the WordPress PDF plugins out there use services like Joliprint and Print Friendly to convert posts to PDFs. Is there a plugin that does this locally utilizing the power of PHP (and/or ...
0
votes
1answer
407 views

WP_Query orderby meta key/value suddely stopped working

I have code that has been working for a long time which when a user clicks a button to order database results by name/value, it gets the results via AJAX from a page that does all the querying. I ...
0
votes
1answer
566 views

Site not responding error - taking long to load

I have a wordpress website which gets around 20K visits a days and with around 7pages/visit and 62 hits per visit. My server is : 8 processors --> Intel(R) Xeon(R) CPU E5405 @ 2.00GHz 8 GB ...
0
votes
1answer
51 views

convert more tag to shortcode

is there is a way to convert <!-- more --> to shortcode
1
vote
1answer
581 views

Custom date changer post_date => future - missed schedule error

I'm working on a custom event scheduler for my website that allows people to easily go in and set the article to post in the future. The reason I'm overriding the normal Wordpress functionality is ...
0
votes
1answer
180 views

Wordpress add_rewrite_rules for custom URLs ending in .html

It's pretty common to see Wordpress running on pretty permalinks in the style of: /blog/2012/04/my-post/ However I'm trying to customize a fresh Wordpress install with a different set of URLs. I ...
2
votes
2answers
278 views

Clean-up script tags

I want to clean up <script> tags generated by WordPress to produce more semantic output for HTML5. You can already do this for <style> tags using this code attached to the ...
1
vote
1answer
1k 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 ...
1
vote
1answer
3k views

How to build a movie database with wordpress?

I'm looking for a plugin to build a movie database like Popcritics The plugin would permits me to add custom info (like CustomPress can do) about a movie. Ultimately, the plugin could permit users ...
6
votes
2answers
3k views

Schedule Posts to Publish from Dates/Times Pre-Set by Admin

I have a multi-author baseball site. I want authors to be able to schedule posts to be published at one of four selected times each day. This is important because some authors write game recaps, and ...
0
votes
1answer
562 views

Hide / Show Custom field depending of the page ID (Magic Field 2)

I use Magic Field 2 to display custome field on my page ! However, I would like to be able to hide several field depending on the page ID... I do not want to use custom post type because my website ...
1
vote
2answers
328 views

How many SQL queries WP Super Cache make to serve cached page?

WP Super Cache plugin generate page and save html of this page to static file and if needed this file is served instead of dynamically generate this page each time. Does WP Super Cache plugin make ...
4
votes
1answer
5k views

show current navigation path from menu

I want something like this Home > Products > Steel > Nails This information should come from the menu structure! I installed Breadcrumb NavXT but it seems that it only takes the path I defined (this ...

15 30 50 per page