Tagged Questions

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

learn more… | top users | synonyms

0
votes
0answers
66 views

Passing two values wordpress dropdown category

I have been following this guide on how i can pass two values to filter the post instead of one in wordpress category drop-down. The objective here is once the user selects a location and then selects ...
0
votes
1answer
74 views

Sort appearence order in the_content()

I have an About the Author plugin, echoing inside the_content(), and a Facebook Like Button, that I hardcoded in the HTML, after the_content(), here's how it is outputting: The Facebook Like button ...
0
votes
1answer
48 views

Widget : html 2 dimensional array doesn't work

I have some strange trouble with my WordPress today : I want to store same multiple values in a widget, so I create something like this : myCollection[id][myField] as input's name for my admin widget ...
0
votes
0answers
6 views

Trying to fix my Contact Form [duplicate]

I have been trying to figure out on what is missing in my codes. Basically whenever i click the submit button to send the data in the contact form, it basically returns me to the home page and ...
0
votes
1answer
285 views

html entities occur in the_excerpt used as meta description

This must be pretty simple, but when I use the function below in header.php to grab the post excerpt to use a meta description for a single post or page setup_postdata($post); $excerpt = ...
0
votes
1answer
53 views

Arrange Category post manually when displayed

Is there way to display the category post manually or in a specific order. Basically the post are arranged in alphabetical order. It is a clients request Here is the code for category post ...
0
votes
1answer
221 views

Creating multiple category drop down

I'm trying to figure out on how to create a multiple category drop down to filter different types of post Here is an image of my work in progress ...
0
votes
0answers
48 views

Trying to customize wordpress drop down categories

I'm having some problems on how to display the categories that i want in wp_dropdown_categories. Here is an image of the drop down - Here is the code for the dropdown - HTML: <?php ...
0
votes
1answer
105 views

Theme customizer live preview JS- Trying to bind to an html image url without luck

I am having a little trouble binding the theme customizer live preview javascript to an HTML <img src>- more specifically it is my logo. Here how the html looks on the page(which is fine and ...
0
votes
0answers
80 views

Wordpress putting “rn” in every line break?

I am using a Wordpress plugin called "WP Checkout" and there is a custom post field that allows you to enter additional product information which is tabulated on the product page. I am able to enter ...
0
votes
2answers
44 views

something strange is happening to my code

This is my index.php (my homepage). It displays two loops. The first one displays the sticky posts and the second displays all of the posts. The <div id="primary"> that is located after the ...
0
votes
1answer
489 views

Cite-Tag for blockquotes

I want to have a cite underneath my blockquote, that has a certain style. "Blockquotes are an essential part of a fancy website." – Cite The markup ...
1
vote
0answers
79 views

Login to wordpress by clicking a link and specifying usernaname and password in url

I'm running a php application on an ubuntu server that's completely independent of my wordpress site. I'm using an iFrame of the server inside the wordpress site, but I need to login to Wordpress with ...
0
votes
1answer
1k views

How do I change the value of lang=en-US

I have noticed that in the <html> tag on my WP site that the language is defined as US English. <html lang="en-US" prefix="og: http://ogp.me/ns#"> I would like to change it to British ...
0
votes
1answer
73 views

Submitting form in wordpress plugin

I am new to wordpress and currently making a plugin. I am getting list of authors using <?php wp_dropdown_users(array('name' => 'author'));?> Now when submitting my form I want to retain ...
0
votes
0answers
29 views

wordpress is adding tags and messing with layout

i've searched and not found an answer specific to what i'm doing i'm hand coding a page of thumbnails with simple html and css. i'm writing it in a text editor so it's easier on my eyes and then ...
0
votes
1answer
101 views

What is the best way to get the first few post from WordPress in different divs using a loop?

I got the first post using the loop but I can't get the second post. I would like every post to be in a different div but the same style as the first post. To do this, I would probably need to ...
1
vote
3answers
203 views

How can I control the HTML output of my post?

As you already know, WordPress manipulates posts, even if you write everything in Text mode. (replacing line breaks with \r\n 's , converting single quotes into double quotes etc.) I know this is ...
0
votes
0answers
33 views

Add html plugin into wordpress

I purchased an HTML5 Video & Youtube background plugin, I want to use it with WordPress. http://codecanyon.net/item/html5-video-youtube-background/1555660 Any Suggestions? Maybe create a ...
-1
votes
1answer
210 views

How to edit homepage in Wordpress?

I'm gonna add a bit of code/edit my homepage in Wordpress, but I can't find the page's main file to edit. Take a look at this: http://uaral.tk This is my homepage. Now look at the page source in ...
0
votes
1answer
128 views

get_post_meta is always empty when I use wp_mail

I made this action hook which will send an email to the users every time a new post in the custom post type "events" is made. function email_members($post_id) { global $wpdb; $usersarray = ...
0
votes
1answer
53 views

how to manipulate HTML parameters using PHP conditions

hi im using my own customize stylesheet using twitter bootstrap in wp-admin. i have created my own navigation bar like below. add_action('admin_head', 'myNavbar'); function myNavbar(){ echo " ...
0
votes
1answer
139 views

Add HTML input tag to to site navigation

I'm building a site using the twentytwelve theme. I need to add an input text box situation on the far left of the menu navigation bar. Here is the HTML from Header.php and the css from style.css. ...
0
votes
0answers
247 views

Run php function after html click after page refresh

I'm trying to create a table of custom type posts in the admin section, in my plugin's settings page. The part I'm having trouble with is allowing user's to delete a custom post through my table. ...
0
votes
1answer
48 views

Missing HTML comment tags

I've this WP installation that I'm currently modifying. And the craziest thing is that the HTML comments are not displayed anywhere in the source. That is if you right click on the page and "View ...
0
votes
1answer
49 views

Wordpress is not displaying CSS file

I have a crazy problem happening and it is blowing my mind. I installed Wordpress on my Localhost and began developing. I modified the standard twenty twelve theme and add custom HTML and CSS to the ...
0
votes
0answers
32 views

Get all the contents of taxonomy and sort by term

I'm doing this in a page template. So far, I can query all the contents under my taxonomy. But I need to sort them in terms of their term. Any idea on how to do this? Providing an example would be ...
0
votes
0answers
207 views

Help with implementing qTip2, with html map in wordpress

I am trying to create an HTML map with qTip2 in my WordPress page, but can't get it work- so I'd really appreciate your help. My aim is to have something very similar to this StackOverflow thread. ...
0
votes
1answer
67 views

Best Way to Add UnEditable HTML to Posts

I find myself more and more needing to use tables or divs inside my wordpress posts content. The problem I find with this is that one wrong backspace or newline, copy / paste has the possibility to ...
0
votes
1answer
226 views

How can I insert a disclaimer in a Wordpress site?

I am trying to look for a way to enable me to insert a disclaimer into the footer of my website. I am using wordpress to power my website. Is there anyway I can make a page link at the bottom? <a ...
0
votes
0answers
52 views

Gallery requires a featured image but does not show it in posts/pages

I've encountered a weird bug with my theme's gallery. If I add a gallery, and do not specify a featured image, it will not show in the post/page. If I add a featured image, it will show the gallery ...
0
votes
1answer
122 views

Send message to author without showing email address [duplicate]

I'm trying to find a way to send via a simple form a message to an author (from frontend, everyone can message) without having the author email address visible in html. Do you know if there is a ...
0
votes
0answers
54 views

Create HTML newsletter source from Wordpress

Is there a way to export certain posts into an HTML newsletter format that is suitable to email to subscribers? I am thinking of something that allows me to select a certain amount of posts, etc and ...
0
votes
1answer
62 views

How to get all the terms of a post

Here is my code so far: $terms = wp_get_post_terms($event->ID, 'speakers', array("fields" => "all")); print_r($terms); It displays this: Array ( [0] => stdClass Object ( ...
1
vote
1answer
230 views

Stray closing paragraph tag when using shortcodes

I'm using a basic shortcode to wrap some text in an expandable div. What appears to be happening is that the wpautop is inserting a stray closing paragraph tag at the beginning and a stray opening ...
0
votes
2answers
576 views

Two posts in same div - WP loop

I would need the following in Wordpress: <div class="posts-wrapped"> <div id="post-1" class="post"> <h1>Title 1</h1> </div> <div id="post-2" ...
1
vote
1answer
3k views

How to Include HTML in Excerpts?

I use the Leaf theme and I can't seem to format the home page excerpts. I tried plugins and fiddling around with the theme-functions.php file but to no avail. I don't need a lot of fancy stuff in ...
0
votes
1answer
79 views

my single.php is mixup on some post for no reason

some of my post is shown well(like http://exam.downloadkaran.com/?p=453) but another post is not shown well(like http://exam.downloadkaran.com/?p=258)!!! i don't know exactly what should i have to ...
0
votes
1answer
32 views

How do I apply my CSS to a theme page?

I installed the Mog theme for WordPress and I would like to position some of my pictures on a page using HTML divs and CSS. My question is, do I have to create a child theme of the Mog theme in order ...
0
votes
0answers
42 views

Wordpress links/site title won't work

I have one Wordpress installation at www.website.com, and a test site at www.website.com/test. The standard site works fine, but the links on my test site act weird. I use post title as permalink ...
-1
votes
1answer
221 views

Need to call this php function inside a modal window from text widget

Need to call this php function inside a modal window from sidebar text widget <?php echo get_post_meta( $post->ID, 'link', true ); ?>
0
votes
3answers
1k views

Wordpress Ajax always returns a 404 error

I just got this code from a tutorial. I can't seem to get it to work. HTML (home.php) <form name="myform" id="myform" action="" method="POST"> <!-- The Name form field --> ...
0
votes
1answer
56 views

insert an html tag using php plugin

I wanted to create a new <div> on top of the <div id="wpwrap"> in adminheader.php and a closing tag below the </body> on adminfooter.php should i just go create a new div ...
0
votes
1answer
182 views

Change class names dynamically added to html elements by wordpress

I'm new to wordpress theming and I am working on a theme that uses the newest Twitter Bootstrap. Here is my question: WordPress adds class names to html elements based on whats going on ie: <ul ...
0
votes
0answers
235 views

Download html textarea content as a file

I am working on a project where the requirement is to download a textarea content as a .txt file on a wordpress site. <html> <body> <form action="#" method="post"> <textarea ...
0
votes
2answers
183 views

Wordpress stripping out BR tags, need assistance

Im having a problem where WP for some odd reason is stripping out my BR tags. Ive looked online and have read a few solutions that people offered including the installation of TinyMCE advanced plugin ...
0
votes
2answers
228 views

creating a static HTML/JS/PHP page

i need to create a static page that allows me to code HTML/JS/PHP that connects to a separate MYSQL backend. how can i achieve such in wordpress page?
1
vote
1answer
1k views

Removing unneccessary p-tags (Not every p)

I removed wpautop from my theme: function disable_linebreaks($content) { remove_filter ('the_content','wpautop'); return $content; } add_filter('the_content','disable_linebreaks',1); ...
0
votes
1answer
30 views

Incorporate single WordPress page into an existing static website [duplicate]

I have a static website and I recently created one single WordPress page, or template, that I am trying to incorporate into my existing static site. I am having trouble. My single WordPress page looks ...
2
votes
4answers
1k 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" ...