Covers all flavors of HTML: HTML5, XHTML and old-school HTML 4.

learn more… | top users | synonyms

10
votes
1answer
681 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
500 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
4k 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
3k 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
197 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
826 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
4answers
5k 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?
4
votes
1answer
5k 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 ...
4
votes
1answer
80 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
108 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
260 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( ...
4
votes
1answer
144 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
1answer
2k 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 ...
4
votes
1answer
120 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
2answers
1k 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
3k 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 ...
3
votes
3answers
655 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 ...
3
votes
1answer
392 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
528 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
16k 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
923 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
126 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
118 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
4answers
6k 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 ...
2
votes
4answers
498 views

Hide a div that is part of all pages on one specific page

How can I hide a div (which contains an image) for a specific WordPress page? I believe my page id is 46: Here is the div I am trying to change: <div id="static-footer-image" ...
2
votes
2answers
716 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
277 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
289 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
1answer
33 views

Remove tags from the kses filter

I know one can modify the kses filter to add new allowed tags to it, but is there a way to remove some of them? I can't find how. I need to disallow DIV tags. Any ideas? Thanks
2
votes
3answers
542 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
848 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
2answers
516 views

Why is WordPress changing my HTML code

I've been playing around with CSS and HTML code and I finally got to the point where the section I was working on works. I saved my CSS, and updated my post, and everything looked great, but when I ...
2
votes
1answer
90 views

Why html tags are being appended to my pictures?

I have a WordPress Network installation. In main site, there is no problem (at least related to on I'm talking about it here) but meanwhile in the other site (my subdomain site) pictures appear to be ...
2
votes
1answer
101 views

Publish pages/posts as HTML?

We're looking to use a plugin or custom setup for authors to create pages or posts and publish them as single HTML files. The file could be saved on the server in a specific directory or have a ...
2
votes
0answers
223 views

Removing the title attribute from links in the post content

When using the WYSIWYG editor to create links, and selecting an existing page or post from the selection list, those links will have a title attribute by default. Is there a simple way of turning off ...
1
vote
2answers
2k 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
61 views

Localizing a string with html tag with word inside that tag

I have translated many string successfully previously, but this one gives me a headache. This part is used inside my content-related.php file which I use to display related posts Here is the current ...
1
vote
3answers
3k 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
4answers
380 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
275 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
2k 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
400 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
438 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
3k 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
48 views

New to CMS - WP functionality. overkill or just right?

I am a designer / developer. My experience is in HTML/CSS/JS, some knowledge in PHP, MySQL, and Wordpress one-click-install and pre-made template. I want to program an entire website layout myself, ...
1
vote
2answers
511 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
118 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
422 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
1k 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: ...