0
votes
0answers
31 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 ...
-2
votes
0answers
24 views

PHP code inside a WP page echo<html code> problem [on hold]

I've activated a plugin to use php inside a wp page. It'works but if I need to use html code within a php block, that statement is not considered. I need it to fill a listbox from database. e.g. ...
1
vote
0answers
30 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" ...
0
votes
0answers
23 views

WooCommerce - group downloads by product [on hold]

In Woocommerce(*My Account page) I can see now an unordered list with all the downloads available, like: <ul class="digital-downloads"> <li><a href="#">Product 1 - ...
0
votes
2answers
82 views

Using php inside javascript [closed]

I have got the following code in a javascript(jquery) file called custom.js: var gapinvite = new Date(); gapinvite = new Date(2014, 06 - 1, 2); $('.days').countdown({ until: ...
0
votes
1answer
111 views

Show contact 7 form in popup

I am creating map link on a image and it has two links to open video and contact form. I am making popup with lightbox but its not working. here is my code.. HTML <div class="map"> <img ...
0
votes
1answer
39 views

Wordpress - Image href for home menu nav not working

I have an image linked to a li element from a navbar in wordpress. All is working fine but when i hover mouse on image, it also shows a menu element hover in the list. How can i hide that when it is ...
0
votes
2answers
71 views

How Can I Center the Logo in the Navigation Menu? [closed]

I'd like to center the logo in the navigation menu. I understand how to do it if it were not PHP based. Does anyone have any insight on this? You can view the test site here Any help is greatly ...
0
votes
2answers
206 views

How do I change/modify the_post_thumbnail(); html output?

I'm working on building out a custom theme and have been struggling with this one for a bit. I am trying to modify the HTML output of the_post_thumbnail(); function. I need to do this because I am ...
0
votes
1answer
45 views

nested divs, classes for a grid in loop [duplicate]

php rookie here. as grids are popular right now, I wonder if this is even possible. I have three posts and have no idea how to get this working; this is my basic loop // WP_Query ...
0
votes
0answers
77 views

Add the “.current-menu-item” class to <a> tag?

I am changing wp_nav_menu() to make it a listless navigation menu (i.e., no unordered list or list item tags) Normally the menu <li> has the .current-menu-item class attached to it when active. ...
0
votes
0answers
35 views

Grabbing image attachments for Flexslider

I'm trying create a function that will load image attachments of a post into a list for FlexSlider to use. To specify, I want an image slider that is specific to a certain post. There may be many ...
0
votes
0answers
58 views

PHP random number in email

I have a Wordpress website where i am making a form so that when a user fills out that form he gets a confirmation email and receives a random order number. I have this PHP function which creates that ...
0
votes
1answer
30 views

featured post as div background

Ok I didn't find an answer yet.. because my code is different.. I want to set the featured image as the div's background but I don't know how to do that.. html, php and css collide in one line.. This ...
0
votes
3answers
54 views

Add topbar to static html page

I have a WordPress blog, but I am also hosting a standalone static HTML page on the same domain/server (LaughingSquid, if it makes a difference). I'm very new to WordPress and PHP, so I am wondering ...
0
votes
2answers
127 views

Nice scroll to wordpress

I am converting html5 to wordpress Theme. I want to use custom scroll for wordpress. The code DEPENDENCIES It's a plugin for the jquery framework, you need to include jquery in your scripts. I will ...
0
votes
0answers
39 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
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
32 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
0answers
37 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
0answers
111 views

Altering images inserted into Posts for lazyloading with PHP Simple HTML DOM Parser

I want to find a robust solution to make lazyloading possible for images inserted into a post. There are many lazyload solutions out there. I'm not looking to cater any one of them specifically, but ...
1
vote
0answers
45 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
0answers
25 views

form to generate url

i have a form on my site to generate url and it works good but the user should wait until the whole page is loaded to be able to use it properly , i think that happens because i use window.onload and ...
0
votes
0answers
199 views

Insert & Upload image into data base in wordpress without using media library & plugin?

Here i am trying to insert image into WordPress database with custom code but i am not able to insert and uplode i am very new to wordpress any body have any idea how to do it?Bellow is my code with ...
0
votes
1answer
88 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
votes
1answer
116 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
97 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
43 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
0answers
135 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
0answers
93 views

How to get list of custom taxonomy terms and display count?

This is actually a three-part question. 1.) How do I get list all terms of my custom taxonomy (in this case, 'audiocat')? 2.) How do I display the count of each term? Example: Rock (5) Pop (3) ...
0
votes
0answers
26 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
14 views

How do I display the contents of each custom taxonomy term and segregate them?

I currently have a page which display all the terms and their contents. <?php?> $audio = get_posts( array ( 'paged' => get_query_var('paged'), 'post_type' ...
0
votes
0answers
137 views

condition for searching multiple inputs in wordpress

I am trying to create a custom search box and would like to know how to check multiple condition based on different inputs.There are 2 inputs. a normal search code (which searches for inputs which we ...
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
0answers
34 views

Add HTML to a specific navigation menu

add_filter('wp_nav_menu_items', 'add_line', 10, 2); function add_line($items, $args) { if ($args->theme_location == 'primary') { // my code here } return $items; } Instead of the above, ...
0
votes
1answer
50 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 ( ...
0
votes
2answers
261 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" ...
0
votes
0answers
41 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
144 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
576 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
0answers
153 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 ...
1
vote
1answer
663 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
290 views

Add number in increment of one to DIV ID

I'm using a shortcode to display a custom post type. The shortcode contains an attribute to display only posts of a specific category within the custom post type e.g. [faq category="travel"] For each ...
0
votes
0answers
47 views

how to prevent words inside image tags from being update in a sql query via php

I need to update certain words inside wp_posts table (1032 posts in a specific time range) but I would like to exclude some words when they are inside tags like so: <img ...
1
vote
1answer
331 views

Conditional statement for parent, child and grandchild pages

I'm trying to figure out how to set up a conditional statement to check if the parent, child or grandchild is being displayed. This is what I've got so far: <?php if ( is_page( 'about' ) || '29' ...
0
votes
1answer
193 views

How can I exclude a dynamic URL to show a popup created using 'Wordpress Popup' plugin

That might be a long shot, but I though I should give it a chance. I am using WordPress Popup in order to show a popup when a user lands on specific pages on the website. You create a popup and you ...
0
votes
0answers
68 views

How to delete in the pages the pre tag added automatically by Wordpress

i have been looking around but there is not a specific answer to my issue. I have set up a slideshow by Wordpress, then i paste the short code in the page where i want to display. The slideshow is ...
0
votes
0answers
79 views

featured post show in category base

i have 2 featured post in 1 div id, 1 big class and 1 small class . i want big featured div are post in category base.. big featured post code show in below. <div class="main_feat"> ...
0
votes
1answer
258 views

How to style this wp_list_pages markup

I'm wanting to custom style the output of this wp_list_pages $children echo, here is the code: <?php if($post->post_parent) $children = ...
0
votes
1answer
1k views

How To: Simple domPDF Example

Not quite sure if anyone here has used dompdf, but I'm in need of assistance. There's a plugin (post-pdf-export) that exports posts to PDF using dompdf. All I need to do is generate some html ...