Covers all flavors of HTML: HTML5, XHTML and old-school HTML 4.
9
votes
1answer
630 views
How do I make an HTML table from a database table?
is there a built-in wordpress function to make the HTML or should I use plain-old PHP?
6
votes
2answers
416 views
Style reply form different than comment form
Is there a way to display (css and html) in a different way the "reply" form and the main "comment" form?
6
votes
4answers
3k views
How can I alter the [gallery] markup?
I would like to change the markup created by [gallery] from what is it as standard (dl) to a unordered-list with a difference. Below is the desired markup:
<ul>
<li><a ...
5
votes
2answers
2k views
How to customize the default HTML for Wordpress Attachments
I'm using Wordpress 3.0.1 (most recent as of now) and working around the Whiteboard theme.
It seems that for attachments (images, specifically), Wordpress generates the HTML automatically and it ...
5
votes
1answer
94 views
Why doesn't default Wordpress page view use force_balance_tags?
I noticed that the default WP theme uses force_balance_tags for listing posts' excerpts. This way, it doesn't cause major html breakage whenever someone writes a post like
<div><b>This is ...
4
votes
4answers
551 views
dealing with large HTML output via plugin code
I recently wrote my first WP plugin that adds a shortcode for embedding a custom jquery image gallery into posts. It's primarily just dumps a good chunk of HTML into the post, along with javascript ...
4
votes
1answer
64 views
Output in XHTML or HTML 5 for plugins?
I'm currently writing a plugin that displays some images - possibly with captions. So, I was wondering whether to use XHTML (<div>s and <span>s) or HTML 5 (<figure> and ...
4
votes
1answer
84 views
Can I force WordPress to use <i> instead of <em>?
For example,
Did you know that <em>hot</em> was used to mean "<a title="What is the origin of “hot” as “good-looking” or “attractive”?" ...
4
votes
3answers
2k views
How to use tinyMCE for user “biographical info”?
I would like to provide our WP users (authors) with a tinyMCE editor instead of standard textarea for their "Biographical Info" on the Profile page.
I have spent a lot of time searching online for ...
4
votes
1answer
109 views
Will my Wordpress site become vulnerable to Cross-Site Scripting (XSS) if I allow img tags in the comments area?
I'm planning to follow this tutorial in order to allow my subscribers to add images to comments (actually a custom post type called "Replies").
Wordpress filters <img> tags by default (except ...
4
votes
1answer
78 views
Allowing more elements in comments via functions.php
I would like to allow certain HTML elements in my comments and have edited kses.php directly in the past.
However, I have been hacked recently and replaced all the core Wordpress files and feel I ...
4
votes
2answers
619 views
When switching from html to visual editor the <iframe> tag gets corrupted
I'm trying to embed an iFrame, and because I set up some CSS using responsive design, I wish to NOT have width="" and height="" attributes whatsoever.
When I type this into the HTML editor field..
...
4
votes
1answer
1k views
How can HTML be allowed in Author Bio?
Is there a way to prevent WP from stripping the HTML from the author bio? I need it to keep my paragraphs.
Thanks in advance! :)
Edit - Although this question has been answered, I will clarify that ...
3
votes
3answers
4k views
I want to have my custom field use HTML, how do I do that?
I want to have my custom field use HTML, how do I do that in such a way that I can use a rich text editor to view the content?
3
votes
1answer
197 views
Using tabs for wordpress plugin
Done my research and found this is how to call the built-in ui tabs jquery script in wp for the admin area but I'm stuck on implementing the other jquery scripts needed that I believe are built into ...
3
votes
1answer
3k views
Is there a way to send HTML formatted emails with Wordpress' wp_mail function?
Is there an action_hook or something similar that could help me achieve this?
I tried adding markup in a PHP string variable and just fired off an email with the wp_mail function like so:
$email_to ...
3
votes
3answers
171 views
WordPress function that makes HTML safe to be sent via AJAX request
What is correct way to send HTML back to an AJAX request in WordPress?
I currently have this:
add_action( 'wp_ajax_nopriv_get-location-info', 'sc_locations_get_location_info' );
add_action( ...
3
votes
1answer
306 views
<form> inside a metabox
I'm trying to write a plugin that allows a user to upload a video to Vimeo through the Vimeo upload API.
In order to avoid trying to upload a video to a potentially shared hosting account and then ...
3
votes
4answers
11k views
jQuery UI Datepicker not working
i want to add a datepicker on a custom page but i doesn not work. WP version is 3.2.1.
Those are the init string i used on wp code:
wp_enqueue_script('jquery');
wp_enqueue_script('jquery-ui-core');
...
3
votes
1answer
735 views
Wordpress custom taxonomy description for each post?
In a Wordpress blog, I'd like to put the term description of a specific custom taxonomy in the footer of each article.
Is this possible? I've tried
<?php term_description( $term_id, $taxonomy ) ...
3
votes
2answers
119 views
Retaining old HTML archives and displaying themes conditionally
I am converting a website from straight html (with tables! Ugh!) to WordPress. The company has a new design every year, and but keeps an archive of their old site(s) with the old design(s) on their ...
3
votes
4answers
104 views
How do I make my wordpress page more friendly for mobile viewers?
My basic question is How do I make my wordpress page more friendly for mobile viewers?
I have seen some answers such as wptouch, wordpress mobile pack, and mobilepress http ...
3
votes
1answer
2k views
How can I publish Word files to a WordPress blog without losing the footnotes?
I would like to take the contents from Microsoft Word files and convert them into WordPress blog posts without losing the footnotes. I've tried many different methods but have not found a simple ...
2
votes
2answers
584 views
Add .html extension to only one page in my Wordpress site
We had an old site that had html pages in it. One of the pages in that site was linked to from many other sites.
Now we moved to a WordPress site, and we created a page with that name, but of course ...
2
votes
2answers
242 views
Why is WordPress WYSIWYMG and how do I make it WYSIWYG?
WordPress may have a text editor that appears to be WYSIWYG, but upon using it I discovered that it is actually WYSIWYMG- What You See Is What You Might Get (once it's done screwing with the HTML).
...
2
votes
1answer
193 views
Wordpress Wysiwyg Content not being displayed
My Wordpress website really isn't working to how I want?!
It was working fine, with nothing being touched, Then lately I find every-page is displaying the same content on each page. Not the ...
2
votes
1answer
1k views
Add visual editor capability to custom excerpt window?
The custom excerpt field (under Add New Post) only accepts html. Thus, you can't just cut and paste a segment from the Visual Editor. If you want links to appear in custom excerpt, you have to know ...
2
votes
3answers
177 views
Preserve white-space in Page
I frequently post pages with code examples. However, Wordpress strips out whitespace, thus ruining the indentation and formatting of my code. So this:
<pre>
selector {
property: ...
2
votes
1answer
394 views
HTML code in Custom field
I'm using a custom field to display images in a slider on each post, but when I update the post after having entered the HTML code in the custom field, the code disappears. I'm assuming that there is ...
2
votes
4answers
4k views
Keep HTML format when switching from Visual to HTML editor
I've been looking around for a solution that will allow me to edit HTML code and have it remain after a switch to the Visual editor and back.
I've tried a bunch of things with no luck:
the ...
1
vote
2answers
1k views
How do I make wordpress comment fields required?
Here is my form:
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform" class="validate">
<?php if($user_ID) : ?>
<?php ...
1
vote
4answers
298 views
How to use code sample into WordPress post?
I am using WordPress, and when I post some post data into my WordPress post, including some html code, as follows:
<code><div id="access"></div></code>
I want the code to be ...
1
vote
3answers
226 views
raw code vs wordpress
I am currently a CS student and an aspiring programmer/web developer. I am wondering whether it is worth taking the time to master html and css to make websites when CMS services/wysiwyg like ...
1
vote
3answers
1k views
wp_editor adds HTML entities to the content
I'm building my theme options page and I want to use Wordpress TinyMCE editor here, so I'm calling wp_editor. But when I'm saving data some entities are added to the content for example, lets say I ...
1
vote
2answers
409 views
Get entire page content (generated HTML in browser)
I'm looking for a filter that provides the full page generated in WordPress - including the head section with meta tags, body, styling and dynamic content. the_content() and the_excerpt() do work only ...
1
vote
3answers
1k views
Simplest way to add a second html editor to the post/page admin?
What's the simplest way to add a second html editor to the post/page admin and show the content in a template?
What I need is something like a custom field that supports html, but I don't need the ...
1
vote
2answers
262 views
What exactly does “Posts page” do in WordPress?
Hay, I'm making a WordPress template, and i have 4 main pages.
HOME
BLOG
CONTACT
ABOUT US
As you can see "Blog" is a page (i need it to display when i call wp_list_pages()), but how do i edit this ...
1
vote
1answer
384 views
How do I add a front menu button that redirects to another website or sub-domain?
Hello there,
I would like to add a front menu
button (viz. Home, About, Archive
etc.) to my blog that links to another
website. WordPress only shows the
pages that I have created using
...
1
vote
4answers
2k views
How to resolve - IE 6 ignores img “width” properties
In this post:
http://humus101.com/?p=1734
We've got 4 images set (in the img property) to a width of 246 pixel.
In chrome it looks fine. In IE6 it doesn't.
Any suggestions on how to solve this?
1
vote
1answer
79 views
Add code just after Post content
I am in a bit of dilemma here so bare with me. I want to add something like this code just after the content in a post:
<p>Please let me know what you think by <a href="#comment">leaving ...
1
vote
1answer
291 views
Change Default Image HTML
I am making a Wordpress theme and want to change the default image html. For example if you upload an image using Wordpress uploader it generates the following html for your images
<a ...
1
vote
1answer
977 views
How to prevent pages from automatically adding line breaks?
I'm trying to style a form on a website, but I'm hitting a snag. Wordpress is automatically generating <br> tags when I directly edit the HTML for pages.
What I've got is this:
...
1
vote
1answer
1k views
How do I stop HTML entities in a custom meta box from being un-htmlentitied?
I have a custom meta box that is supposed to accept HTML, but the text I'm trying to input contains both double and single quotes (and ampersands), and it's messing up the saved data - each time I ...
1
vote
4answers
1k views
How to wrap every image in a post with a div?
When I add an image to a post I want it to be in a div e.g. , and I want that to be done automatically, so I don't have to do that in HTML editor.
I don't want to use js to accomplish this and by the ...
1
vote
2answers
1k views
Switching From HTML to Visual Editor and Back Completely Strips Page Contents
I have a page (not a blog post) I need to embed an iframe on (it's to "integrate" an external service's product catalog). I added the iframe code in the raw HTML editor and saved the page. I viewed ...
1
vote
1answer
147 views
Adding HTML to the Header, Screws up in IE7
Working on a site for a client:
http://esteyprinting.jasinternetmarketing.com/
I added an HTML table to header.php to include the "Call us at..." and the social media icons. It renders fine in most ...
1
vote
1answer
109 views
Custom image upload
I'm trying to setup upload for for attachments for my custom post form.
At first I add to my form tag enctype="multipart/form-data"
For testing purposes I have two upload forms, but in future I'm ...
1
vote
1answer
77 views
Add a css class to a taxonomy permalink
I need to add a css class to every <a> element retrieved by the_terms() (or similar function) in order to open the taxonomy permalink in a fancybox modal window.
I've been searching this whole ...
1
vote
3answers
76 views
How can I hide Home in my menu in a specific page?
I want to how can I hide the home in the menu without setting show_home in functions.php to false, I just want to do is hide it in a specific page. How can I do this? I am using the Twenty-Eleven ...
1
vote
1answer
56 views
Protect HTML in Comment
In wordpress comments system, it work HTML. I want to protect inserting HTML in wordpress comment system.
