0
votes
0answers
2 views

wp_schedule_event action not running

It seems like all the answers on here for this question end up being a syntax error, however I'm not seeing it here. I'm trying to setup a daily job here that will run through all my 'vacation' ...
0
votes
0answers
10 views

New posts not showing up on homepage

I'm experiencing a strange problem. None of the new posts are appearing on the home page. http://www.roamfarandwide.com Here you can see the last post is from 21 January. That is the day I transfered ...
0
votes
1answer
21 views

How to redirect on particular page in wordpress?

<?php if($result_array['ACK']== 'Success'){ global $wpdb; $wpdb->insert('wp_paypal_payment', array( 'amount' => $result_array['AMT'], 'post_id' => $_REQUEST['post_id'], ...
0
votes
0answers
9 views

Code for recent posts widgets

Good day, i have been using this plugin for many years now BUT the only problem is that it does not show child categories, it only shows posts that are in parent categories, how can i fix this. MY ...
0
votes
1answer
14 views

Settings API Message Error is global

Am not shure how to realy use settings api for showing error messages on my menu-page. For example i create menu page (eng.product)and there i register two input text fields like example. After ...
0
votes
0answers
7 views

Owl Carousel Keyboard Navigation

I'm looking to add keyboard navigation to the Owl Carousel plugin. The original jQuery plugin's Github has a thread on this topic here, so I've tried the following: var owl = $('.owl-carousel'); ...
0
votes
1answer
6 views

How to Add Signature or Ads after Post Content in Particular Category?

function custom_content_after_post($content){ if (is_single()) { $content .= '<p>Load Your Content Here</p><img src="http://imgur.com/asdafe" alt="Your Name" />'; } ...
-1
votes
0answers
7 views

wp_insert_post 500 server error

I need some help, im trying to do a wp_insert_post with a htmlform (php and wordpress). I keep getting a 500 server error and i dont understand why, can you please help me? (the prints and echoes is ...
0
votes
1answer
8 views

Unable to access custom plugin backend

So, I just created a new plugin and i've added capabilities, a new role, linked them all together, etc.. etc.. but for some reason I'm unable to access my own backend. Error message is the generic ...
0
votes
1answer
12 views

How to convert raw url to hyperlink?

I have a custom field with raw urls and I want to convert them to hyperlinks. So I used this code: <?php $text = get_post_meta( get_the_ID(), 'Links', TRUE ); echo make_clickable( $text ); ?> ...
0
votes
0answers
12 views

Write function that gets as input a class of a WP widget, and echo its admin form.

For example, given as input the class of the WP Categories widget, the function should echo the form
0
votes
1answer
10 views

Metabox of one post influence setting on other

This great answer by David Gard allowed me to have a metabox sticky (checkbox) for posts that could only be set (checked) on one posts in the loop at a time. If post A has that meta box checked, then ...
0
votes
1answer
18 views

Display most viewed post from last 30 days is not working correctly

I've try several different loop to display the most viewed post from the last 30 days . . However its just showing the post from 30 dasy ago . . not from the last 30 days . . not the most viewed . . ...
0
votes
1answer
23 views

Create theme for mobile phones and tablets only?

I've been checking the docs but I only found a way to use different style sheet for phones and tablets. Is there a way to create another different theme only for mobile phones and tablets? And I'm ...
0
votes
1answer
8 views

User list order by user meta

i have created user vote that can vote users or author of posts. so for example have 4 users which looks: user --- ID=1 --- META KEY='_thumbs_rating_up' --- META VALUE='13' user --- ID=2 --- META ...
-3
votes
0answers
9 views

Trouble with Ninja Forms and Mandrill

I'm having a website where a ninja form is placed. According to ninja forms it should work perfectly with wpMandrill plugin. I have both installed and configured. Mandrill is working fine. Without ...
0
votes
0answers
9 views

Save data on custom table Wordpress

Here is my current code, <div class="wrap"> <div id="icon-tools" class="icon32"></div> <h2>Quote Manager</h2> <div class="aio-content"> <form method="post" ...
1
vote
1answer
9 views

How to use the built in tooltip for form validation error messages in WP admin plugin?

I'm building a wordpress plugin that includes serveral menus in the wordpress backend (admin). I'd like to use as many existing parts as possible and make my menus look like the standard wordpress ...
1
vote
1answer
15 views

How to get latest post value if first post is empty in wordpress

I am working on wordpress custom field. I am facing problem to get custom field value if latest post custom field value is empty then display second latest post or from other post custom field value. ...
0
votes
0answers
14 views

Insert post programmatically and decide to tweet or not to tweet

I am inserting a new post using wp_insert_post() and want to be able to decide if this post gets tweeted or not using the WP to Twitter plugin. First, I create the post, like so: $newpost = array( ...
0
votes
1answer
17 views

Attach a custom post type archive to a static page

So lets say you have a static home page and your posts page is a page called "Blog" or something along those lines. Using <?php post_type_archive_title(); ?> in the header.php will then allow ...
0
votes
0answers
7 views

how to sort post in admin column by recently

i have created custom post type my problem is: in admin column, posts are sorted by ID how can change it to date. In other words, i want to sort post by recently
-3
votes
1answer
12 views

How to Display only the Author last comment

How to display only the author last comment (with link or without link) in author page . Please give me the code. Thanks You.
0
votes
1answer
12 views

Requesting localhost to load am image on a live site

I have a live site which is working absolutely fine but there is an error coming on browser console I have found this error http://prntscr.com/6bntif this is asking for an image from localhost ...
0
votes
2answers
16 views

wp query for popular post with simple field

I used simple-fields plugin for one addition field(premium posts) and now I need to change the popular post widget. I need to get all popular post exclude premium post. What I have tried so far, ...
0
votes
0answers
7 views

wp_update_post creating revisions instead of updating the post

I have been trying to update a post in the posts table but for some reason, it is creating a multiple number of revisions but not updating the main post. I have been trying hard for the last one day ...
0
votes
0answers
8 views

multistep form with register button and login button in same page

I have created the Template page for Ask some questions to someone with Multistep using javascript. It has three steps First Step -> user will ask questions Second Step -> its sub type questions Third ...
-1
votes
0answers
11 views

Can I have a widget defined in custom theme - only shows one or the other

Wordpress 4.1.1: simular problem to another question: I have a add_action widgets_init call back in which I have a call to register_widget that registers a class and a call to register_sidebar that ...
-1
votes
0answers
10 views

I need a lightbox plugin that will apply to gallery

I have a gallery on my page, in this type of syntax: [gallery ids="1588,1584,1582,1583,1581"] I would like each image to open up in a lightbox. I've tried the Simple Lightbox plugin, which looks ...
0
votes
1answer
8 views

Disallow “contributors” to edit their own posts once they've been set to “Pending Review”

My question is exactly what is in the title: how can I disallow "contributors" to edit their own posts once they've been set to "Pending Review"? I can't seem to find any documentation on how to do ...
0
votes
2answers
13 views

Echo tags with an if statement and display php inside of the IF?

I am having issues displaying tags only if there is tags and including php inside of it as well. This is what I tried but nothing is showing. <?php if( has_tag() ) { ?> <!-- Start of ...
-4
votes
0answers
14 views

I need help finding an e-commerce store that supports this idea

I found my way here from reddit.com/r/wordpress. I would like to design a 1 page wordpress e-commerce site. Here is a link to what I have in mind for design. The user would select both a variation ...
0
votes
0answers
10 views

how to add custom plugin menu link in toolbar

function ledger_manager_link($wp_admin_bar) { $args = array( 'id' => 'ledger_manager_link', 'title' => 'Ledger Manager', 'href' => plugins_url('ledger_credits.php'), 'meta' ...
-1
votes
0answers
8 views

Plugin hook that only fires when a new post is published? [duplicate]

I wrote a plugin for my site which posts an update on my forum whenever a new post is published. I'm using the "publish_post" and "publish_future_post" actions. The problem is, these actions also ...
0
votes
2answers
19 views

Comments on pages not appearing, even though I enabled them

I disabled once comments on my pages, and I do not remember how, and now I tried to enable them and they do not appear. I am aware to the checkbox at the bottom of the page & screen options, but ...
0
votes
0answers
10 views

How to do full width on simple blog

I hear that there isn't, technically, anything call "full width". What, then, are the most common ways to do full width, on a simple blog, in this current time period? I'm very new, and do not know ...
0
votes
1answer
11 views

Adding Item and Coupon Programmically via WooCommerce

Since WooCommerce updated to 2.3, my previous function is not working for adding a coupon and an item, if an item already exists in the cart. function add_product_to_cart() { if (!is_admin()) { ...
0
votes
0answers
15 views

trying to update Category Chained Selects but failing

I'm using Wordpress 4.1.1 and am trying to update an old plugin: Category Chained Selects. I've placed the two files (php and js) in http://pastebin.com/qCq9cb0i I have made a couple of small ...
0
votes
2answers
11 views

Bulk delete users from a csv list

I have a WordPress site with 65,000 registered users, about 10,000 of those users are spam bots, inactive account, hard email bonces etc. I have them gathered in a CSV list, how can I use that csv ...
0
votes
3answers
39 views

Get direct children of custom taxonomy

I've googled extensively and tried my best, but I just can't get the first level children of the custom taxonomy in the code below to work! It only displays the parent level. What I am trying to ...
0
votes
1answer
29 views

How do you get all the urls of images attached to a post?

I've searched high and low and can't seem to get it. I'm trying to output an XML feed with all the images attached to a post from a custom post type: </BasicDetails> <Pictures> ...
0
votes
1answer
9 views

List posts of terms but exclude one term

I have a Custom Post Type for "Products" with a Custom Taxonomy of "Product Line." I've set up a page to list out the Products by their Product Line. However, we're also using a Product Line of ...
0
votes
0answers
10 views

auto search suggest

While i was searching for auto search suggest, i found this question Auto-complete or auto-suggest from list of post titles. But, i don't know how to make it works. What should i do to the search form ...
0
votes
1answer
25 views

wp_mail sending mail twice!

I can't figure out for the life of me why this is sending twice. It's not in any loop, and I have an if statement checking if isset but nothing I do stops it from sending twice. It's a basic form ...
-3
votes
0answers
19 views

Setup wordpress with mysql database on server

Hi me and my friend we are a team who wants to run wordpress from home. We live quite far and this is the best option for us at this time. We have setup webMatrix which use TFS but when we try to ...
-1
votes
0answers
17 views

Query show/hide current post in archive page

I'm having lot of headache with that since a couple fo days . . . I explain my situation: I'd like to show/hide the_content on click of the_title of a post in my archive page. Righ now, it display . ...
0
votes
3answers
41 views

Dequeue script to prevent javascript event conflict on wordpress child theme

I've built a child theme of Divi Theme to use with Buddypress. So far so good, except for a script conflict on commenting buttons. The theme load a javascript (js/custom.js at 2642:2662) with the ...
0
votes
1answer
30 views

Change “empty trash” button text?

I was able to find information on how to change the edit views text but so far I've come up empty with changing the text of the "empty trash" button. I'd like to change it for my task management CPT ...
-3
votes
0answers
20 views

Woocommerce product image thumbnails carousel / loop / slider - HELP

I have issue with my woocommerce store. On product page I want to have main product image and below thumbnails in one row. By default there are 4 images by row in thumbnails and when I added more then ...
0
votes
1answer
14 views

301 Redirect Loop

I have wordpress site hosted on openshift say example.com. I am redirecting example.com to www.example.com (non www to www). I have created alias for www and non www version and updated my cname with ...

15 30 50 per page