Tagged Questions

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

learn more… | top users | synonyms

-3
votes
0answers
17 views

Problem in excerpt [on hold]

Recently, I am converting an html website to wordpress. In my index.php i want to display excerpt of posts. Its working fine with html but while converting to wp theme its not showing result as ...
0
votes
0answers
18 views

PHP filters on a listing page [on hold]

I am asking in the hope someone cal provide a solution to below as I have no knowledge of php and have searched for hours in the hope I can find a solution to below I am creating a website - ...
0
votes
0answers
13 views

How to center an array of thumbnails? [on hold]

I am creating our new page based on wordpress an i am creating an own theme. It should be responsive so i can ot work with a specific width of my site at all. It works quiet good expect one thing. I ...
0
votes
0answers
22 views

Pages in another language

I am trying to translate this page of my theme to Portuguese, but I can not find where is the files to translate. Link: http://novine.com.br.siteseguro.ws/lojakazola/lounge/ Text: (by admin. Posted ...
0
votes
1answer
28 views

displaying an onclick overlay [on hold]

I'm wanting to add a onclick overlay to my wordpress site located at A1cleaningservicesnw An example of this I have found is located here. when you click on one of the portfolio images it loads up an ...
0
votes
1answer
17 views

Remove heading tags on line break

I have to add line breaks in a h1 paragraph using the visual editor. On every line break Wordpress automatically adds h1 tags to every new line. Example: <h1>Watsup</h1> ...
0
votes
0answers
10 views

MAke a search form to also includes html of the post

I have a database of all images that I am using in wordpress, a lot of them are not attached to posts because they are not in the uploads folder, lets say for example I have an image named: ...
2
votes
1answer
25 views

Add custom html to nav_menu

Im trying to add some html to the nav_menu. Basically I need a button tag inserted after the opening li tag if there are children in the menu. I see that there is a walker class but I have no idea on ...
0
votes
0answers
16 views

Execute PHP code of a plugin markup file

I am creating a plugin which imports html markup. I would like to execute some php on those markup files before or after it gets imported. Is there anyway I can do this? Right now if I add PHP to the ...
0
votes
2answers
69 views

Cant get paginations on single.php to work with my custom post types

I'm using custom post types and custom fields plugins for my custom post types. I have all other paginations working smoothly on my website except for my single.php. I have a custom post type of ...
0
votes
2answers
20 views

Posts don't appear on Template Page

I made a Template page galerie.php and I wanted to show posts there. Why isn't this working? It seems that posts only appear at home page for some reason. The code is: <?php while(have_posts()) ...
0
votes
0answers
20 views

Different content in different pages

I'm developing my second wordpress theme and I guess the following question is really basic but I couldn't find an answer. I have different pages with the same header and the same footer. What ...
1
vote
1answer
27 views

Are there any standard HTML markup for metabox?

The add_meta_box HTML callback is rather low level that we need to code the HTML by ourself, e.g. echo the HTML form markup function myplugin_meta_box_callback( $post ) { // Add an nonce field ...
0
votes
2answers
57 views

Is this spyware on my site or a real Java update?

I run a small WordPress website for the wife http://craftybluefox.com I keep getting this java update box poping up only on her site and looking at the links they go to somesite ppv2014.info which ...
0
votes
2answers
34 views

How do I put a wordpress blog into my html site?

ok, so have a html site with css and I want to put a wordpress blog page in it, but I want it to be in the same site I already have. I've read the integrating wordpress with your website thing and I ...
0
votes
1answer
25 views

Adding a slide toggle on Wordpress

I'm trying to create a sliding toggle to show and hide a box that I'm creating but I'm not having success on it, does Wordpress have any required special thing to make it work? here's my code and ...
0
votes
0answers
24 views

MetaBox with Editor instead of textarea - html not saved

I am calling several custom MetaBoxes in my custom post type on Wordpress 4 like this without using a plugin: array( 'label' => __('MyContent', myPlugin), 'id' ...
0
votes
0answers
58 views

Radio buttons value not calculated and div not displayed on button click event

I have a list of index and in each index I have 3 fields indexno, indexname and parts. parts is parent and has sub fields partno, partname and partvalue. Each part is displayed as a radio button. ...
0
votes
1answer
18 views

Getting the parent terms adds additional empty markup [closed]

I am trying to get only top level terms from hierarchical taxonomy called "City". It works fine in a way, because it outputs extra elements... $cities = get_terms( 'city' , array( ...
0
votes
1answer
36 views

WP List Pages - Add Title Attributes to Anchors

Using the default wp_list_pages() is there an easy way / filter to add title attribute to the anchors? Right now it just spits out the anchor with no title attribute but I would like to add it on ...
-1
votes
1answer
79 views

getting image alt text via ACF plugin in WordPress [closed]

I am using the ACF plugin in my WP 3.3.1 application and I use the the_field method in many places across the site. One place in particular I use it is in a slideshow/carousel as below: <img ...
0
votes
0answers
17 views

Modifying Search to Exclude results from within short code or HTML

I've been struggling with this one for some time and I was wondering if anyone has any ideas on how to fix this. I'm not asking about stripping out short codes or HTML from the excerpt, that's fairly ...
0
votes
1answer
28 views

Generating embed code for users to share

Recently I was stuck by an idea to let users and other bloggers to embed the entire page on of my blog on to their blogs. The problem is I have to change the URL every time in code and the codes ...
-1
votes
3answers
42 views

WP Query outputs three items within a div

At present I have a basic query that outputs 12 custom posts, each in a div. I need to restructure this to output four divs, each with three of these items inside. So it's sort of like a nested div. ...
-3
votes
1answer
53 views

dropdown does not work [closed]

I have the page http://www.supersprox.eu/invoicewithtabs/. When I click "Show filter" button an area with several dropdowns appear. The problem is I can not select values of the first row of ...
2
votes
2answers
226 views

How do we remove mystical [X] from text? Image included

Wordpress has placed an uncalled for character on one of our page's text. We have a few hundred pages, and this only occurs on one. In the paragraph's text, between the words 'Music' and 'Students', ...
0
votes
2answers
35 views

Syntax error when I try to insert my loop into an unordered list? [closed]

I am very new in PHP and WordPress development and I have the following problem trying to insert some HTML code into the posts loop. I tried something like it: <?php if (have_posts()) : ...
1
vote
1answer
108 views

Editor stripping out data attribute when saving

I am on the Text version of the page editor on the backend and whenever I try to use something like <div data-100="1500"></div> and click the update button the data section is stripped out ...
1
vote
1answer
28 views

HTML generated by WP

For example, when using wp_nav_menu function, WP automatically generates menus with the following structure of elements and classes <ul> <li class="menu-item current-item"><a ...
0
votes
0answers
16 views

Change HTML Output of Wordpress RTE

after I selected some text and clicked the "list"-Button in the RTE, wordpress wraps it with <ul></ul> and <li>'s of course. Now I need to add a class to the UL. How to do that? ...
1
vote
1answer
36 views

I wrote my plugin. How to display the result of the plugin's function to sidebar (widget?)?

I wrote my plugin. How to display the result of the plugin's function to sidebar (widget?)? <? function register_form () { global $post; $test = "testesttest"; var_dump("testtest"); ...
0
votes
0answers
78 views

Strip <p> and <br> tags from a specific div

I don't know if its WordPress or TinyMCE but something always puts a crap load of paragraph and break tags everywhere which is incredibly annoying. I have a div with an ID of "hover" and I want to ...
0
votes
1answer
65 views

prevent HTML output if custom field is empty [closed]

I am using the ACF plugin for custom fields. I am using this to add a second content area to my website. I have a peice of JS that says if this div is present then add a class to the page-content ...
0
votes
0answers
81 views

Current state to a button when on a single page

I am having trouble figuring out how to keep the current state active once on a single page of the post. For example: Recipes displays a list of all my post that are under a specific category. Once ...
0
votes
1answer
87 views

Automatically create a loop for post ID

I am having trouble generating a loop for my post. The JS calls the slide_ID which then needs to display each slide-ID in numeric order for it to work. Example for slide-1 to scroll to its next slide ...
0
votes
1answer
87 views

Wordpress/Server outputting strange result

I've got a custom wordpress site that locally is working fine. However on the staging server, on random occasions it outputs just the html, partially incomplete. The output always seems to be missing ...
3
votes
1answer
176 views

How to get the custom header image's alt text?

I'm using a custom header in my theme. My aim is to add an alt attribute to my custom header img element. My img element so far looks like this: <img src="<?php header_image(); ?>" ...
0
votes
1answer
50 views

WP_Query create html structure

I have a page here to illustrate my question http://www.ttmt.org.uk. The first grid is hard coded using the html structure I want - div's to contain each row and then div's inside that to contain ...
0
votes
0answers
69 views

Adding Radio Options or Select Options to Meta Box Title

I am adding Radio Options and Select Options to miscellaneous Meta Box titles. The HTML is rendering just fine in the title of each appropriate Meta Box title. There seems to be a bit of ...
0
votes
0answers
14 views

Add hyperlinks in media description

I want to add hyperlinks in the description box of a media file in the library but it won't display hyperlinks for some reason. It displays text but as soon as i put a href it hides it. i'm using ...
0
votes
2answers
55 views

Why isn't WordPress respecting my HTML?

I have a page in WordPress which includes the following valid HTML5: <div id="bookLesson"> <a href="lessons.php"><h1>Book your first lesson today</h1></a> ...
1
vote
1answer
212 views

Multiple options not staying selected after saving

Problems: The save works, but is only storing one of the options in the database after save. Options not showing as selected after save. The select fields: <select ...
0
votes
1answer
141 views

html mail sended with wp_mail shows plain

I have a invoice.html that i want to send i use the following function to replace some things in the html foreach($variables as $key => $value){ $template = str_replace('{{ '.$key.' }}', ...
0
votes
1answer
180 views

Adding div after every two post on main loop! Why will first post not get counted?

So I am trying to add a div after every two posts in home.php and I almost followed the answer found here but changed it a bit to function with the rest of the theme. Now the problem is that in the ...
0
votes
2answers
33 views

How to edit a HTML list in WordPress?

I'm new to WordPress and what I want to do is to edit the HTML of a specific page in WordPress. For example, a page in my website shows in the source code (in Chrome) a list, that I can see in the ...
0
votes
0answers
29 views

<a>tag in register_sidebar

I use this sidebar widget between thumbnail posts. When I insert <a href="example"><img src="example2"></a> tag in widget, its size and position show post`s size and position ...
0
votes
1answer
57 views

Possible jquery / library conflict in plugin usage

I am using the free version of the plugin: WP Feedback & Survey Manager but for some reasons the tab style is not rendered, and I guess it's for a javascript/jquery problem, eventhough I don't ...
0
votes
1answer
87 views

echo variable containing html and the_permalink();

I'am trying to echo a vriable, but the permalink does not work as clickable button. The permalink just displayed outside the button. Here is my code: $perma = the_permalink(); $valid = '<button ...
0
votes
0answers
89 views

How to separate HTML and Wordpress files

I want to separate the HTML and PHP code so that the HTML guys can easily work on their files without disturbing the PHP code, but couldn't find any proper solution or Start point to begin. Please ...
1
vote
0answers
79 views

Add .htm extention to a custom taxonomy

I need to add '.htm' to all my urls on a new site - client requires that, as I am converting a old static site into WP. (I use Remove Taxonomy Base Slug to hide the slug of my custom taxonomy "topic" ...