0
votes
0answers
6 views

Creating a “forum” - showing last post or last commented post

thanks for reading! Im creating a forum just using categories and posts. I'd like (as most forums do) to show the last commented post or the last created post (which ever is newer) next to the ...
0
votes
0answers
5 views

CSS acting differently in and out of Wordpress

I've created a from-scratch (non-Wordpress) responsive page that works exactly as expected, and now I'd like this to be the front page of my Wordpress site. The FS (from-scratch) site comprises an ...
-1
votes
0answers
4 views

Woocommerce create_category hook not working for product categories? [on hold]

so I want to hook into create_category and edit_category for products in Woocommerce. However it seems like it's not using these hooks when creating / editing categories? I know the hooks work for ...
-1
votes
0answers
5 views

Create an order in WooCommerce using S2Members API and wc_create_order [on hold]

I'm trying to use S2Members 'Payment Notification API' to create an order in WooCommerce when a payment is processed. I'm going to be batch shipping my product once a month to all members who've paid ...
-1
votes
0answers
6 views

Stop monitoring site by Jetpack that doesn't exist anymore [on hold]

I activated the Jetpack monitoring plugin for my blog. After a while, I decided to quit the blog completely, so I made a hard rm -rf wp/ on my machine. Consequently, I received a monitoring notice ...
0
votes
0answers
4 views

Share menu accross network

I am using WP multisite and used the following pluging to share my main site menu on other sites. http://wpmututorials.com/plugins/networkwide-menu/ But it only display my top level menu not the ...
0
votes
1answer
6 views

Show number of articles in menu

I want to display a number of articles in a certain category which is hooked to a menu item. It should look like Bootstrap's "badge" component. Now I've got: and what I want to achieve: Do I ...
0
votes
1answer
10 views

Force HTTPS 301 redirect with hook

I am trying to force a 301 https redirect with hooking into the 'template redirect' function. I want not doing it a htaccess because when I update my permalinks, htaccess with https redirect ...
0
votes
1answer
12 views

how to add number value in front for variable

Hi there my question is very simple, is there a way by which we can add a value in the end of the variable a numeric value. like we have a variable $tota $tota1 $tota2 $tota3 each have different ...
0
votes
0answers
9 views

How to add custom post types to normal category pages

I want to have a custom post type, named event, listed with normal posts in the category pages. I have managed to add categories easily to the custom post type with this: add_action('init', ...
0
votes
1answer
13 views

How to add new sites and map a custom domain in WordPress Multisite?

I have a wordpress multisite installation on a domain. I defined each site as a sub-domain. For Example: www.example.com -- Main Domain www.test1.example.com --- is the another site similarly I have ...
0
votes
1answer
11 views

Alter a specific query on Wordpress

I need to change a query of a plugin that is not the main query. The author did not put any filters. I can see the query from $wpdb->queries Is there a way to access the specific query and ...
0
votes
0answers
7 views

Select which header to use from custom theme options and change index.php

I have my own writen theme which is running on 4 sites with WP multisites. I want to use an different header on 1 site and I have a theory that it would be possible to select which header to use in a ...
0
votes
0answers
9 views

Standard WordPress gallery - Possible to open image in page?

I have the standard gallery which works OK. It is configured so that when someone clicks a thumbnail it opens a larger version (at the moment- the full sized version). The issue is that when clicking ...
0
votes
2answers
24 views

How to get the real address from a url (permalink)

For some reason i need the actual address of current page in my plugin , but after searching i can not find any answer on how i can get the real address of current page. I tested many functions for ...
0
votes
1answer
18 views

Woocommerce cannot see products in wp-admin [on hold]

I have a problem with the wp-admin interface in woo-commerce. I have around 14k products and they show up when I browse the website as a user, but I cannot see or modify them in wp-admin -> ...
0
votes
0answers
12 views

Admin comment always on top of comment list / nested replies - possible?

I'd really just like a push in the right direction for this.. using a callback for a custom comment display so I can have 4 different forms of code and styles for: normal 'parent' comment normal ...
0
votes
0answers
27 views

I am stuck between post meta function to call unique id

I have created a system on which on the front end it is possible for user to write a little suggestion below the post. It's separate from the comment system The code I used is <form method='POST' ...
-3
votes
1answer
19 views

How can i get rid of warning messages [on hold]

URL:http://www.gazettevandetroit.com/ Error: Warning: Invalid argument supplied for foreach() in /home/gazettev/public_html/wp-content/themes/exquisite-wp/template-home.php on line 118 Code File: ...
0
votes
0answers
9 views

Loading different template on different url of same page

I have successfully add rewrite rule and tag for a page. My page slug is my-page. when my url is mysite.com/my-page then the right template is properly loaded. I have set a custom template for ...
0
votes
3answers
26 views

get_thumbnail_id returns full size image

I want a thumbnail of the featured image of the posts as a URL. So I'm using the following code to get a smaller size of the featured image. $post[$i]['thumbnail'] = ...
0
votes
1answer
19 views

How to add custom comment fields but *only on the comment reply form*?

I've been searching high and low for this but can't find anything that explains how to add custom fields to only the reply form. I've seen and got working custom fields on the comment form, but when a ...
-1
votes
1answer
25 views

Media upload error

I'm new in WP development. Suddenly I face upload error while media uploading. Even I also deactivated all plugins. Now I'm using WP latest version (4.1). After error msg the image is uploaded ...
0
votes
2answers
15 views

Create Table on Plugin Activation

// Initialization and Hooks global $wpdb; global $wp_version; global $wpmyfirstplugin_version; global $wpmyfirstplugin_db_version; global $wpmyfirstplugin_table_name; global $wp_version; ...
0
votes
1answer
75 views

Why is Wordpress 4.1 an auto-update?

Why exactly is Wordpress 4.0.1 upgrading to 4.1 automatically? To be specific, I see in wp_options table, in option with name _site_transient_update_core, a serialized array with an update, AND an ...
0
votes
2answers
26 views

ajaxt returning object object [on hold]

This is my ajax: functions.php and script file add_action( 'wp_head', 'so_enqueue_scripts' ); function so_enqueue_scripts(){ wp_register_script( 'ajaxHandle', get_template_directory_uri() . ...
0
votes
0answers
7 views

Wordpress + Postgresql

I’ve painted myself into a corner. I hired someone to build a database with all kinds of cool search features and such. The programmer wasn't aware that my site is built on Wordpress. He wrote his ...
0
votes
0answers
16 views

Pin a post to the top of a page, other than the home page

I'm using a static home page, so my posts go to a different page. How can I pin a post to the top of the page the posts go to (not the home page)? Originally I thought it was as easy as using the edit ...
0
votes
1answer
11 views

Improving this link color picker code

I'm looking to create a color picker in the admin for the anchors. I know it can be done by CSS but I have a multisite and would like users to easily set the link colors. The following works but ...
0
votes
0answers
9 views

Custom Menu's - Disable Link checkbox

I've been trying to write a plugin that adds a checkbox (below the "Open in New Window/Tab" checkbox) to the Custom Menu pages/links. I've been able to add the Checkbox and change the ...
0
votes
0answers
19 views

How to add new checkbox option to “Screen Options”

I added extra info block to the comments listing section (/wp-admin/edit-comments.php page). I need to add the checkbox option (like "In Responce To") to Screen Options for toggling the visibility ...
0
votes
1answer
19 views

Send Admin Emails to Multiple Email Addresses

Is there a hook that would allow me to email multiple email addresses for the default admin email notifications? I was hoping I could build an array: $adminEmails = array('me1@example.com', ...
0
votes
0answers
14 views

Updating plugins in 4.0.1 creates directory structure in WP root

I’m experiencing a weird behavior in a WordPress 4.0.1 install that I have never noticed on any other installation: Whenever I try updating a plugin from within the WordPress dashboard, the update ...
0
votes
0answers
18 views

Have non-wordpress page as root (and blog elsewhere)

I'd like to have a custom, non-Wordpress page (totally separate HTML/CSS/etc. files) at www.mywebpage.ca, and then my Wordpress blog only at www.mywebpage.ca/news. Is this possible? (The reason for ...
0
votes
0answers
18 views

Fetching array of postmeta with $wpdb and in_array conditional

I'm trying to fetch an array of all entries to a specific meta key and then check to see if the user input value exists in that array. I've checked the data base for the query and I see the meta ...
0
votes
1answer
19 views

Shortcode and whitespace formatting problem

I'm having a problem with shortcodes on a website, currently you enter a shortcode in the post edit screen like the following: [tab name=Itinerary] This will output a tab such as: However as ...
0
votes
1answer
13 views

Video Shortcode Only Returning a Link

I am trying to dynamically load a video in the media library using the built in MediaElement player. To do this, I am using the do_shortcode() function to run the [video] shortcode and build up the ...
0
votes
0answers
3 views

How to display an example of interaction with a program or shell in a terminal window [on hold]

In books where command line interfaces are discussed (like books on the topics of linux, shell usage, SQL, cisco IOS etc), there are often printed examples of a user entering commands to some CLI ...
-2
votes
0answers
9 views

WORDPRESS Simple Press dialogue boxes closing after 1 second [on hold]

For my wordpress website, I have a forum using the plugin "Simple:Press" (www.simple-press.com) and it's basically just a template integrated forum. However, when I open my 'toolset' (which has ...
1
vote
0answers
20 views

What are all these spam subscribers doing here?

We look after a bunch of WordPress sites none of which run themes which involve public participation. So basically the setting Membership - anyone can register is always turned off. I have just taken ...
0
votes
0answers
12 views

WordPress theme change and deployment using addon domain

A client wants to change their Wordpress theme and have created an addon domain to facilitate this. Their intention is to make the updates on the addon domain and then switch the old domain to the ...
-1
votes
1answer
23 views

Displaying posts content inside a page [on hold]

I have a problem when I am trying to view the posts content inside a page When I click on the post title, the WP retrieving the Homepage content inside the page of posts
1
vote
1answer
9 views

Best action to call add_rewrite_rule

In Codex I found that the best action to call add_rewrite_rule is the init action. So in this way the function is called every time the site load. But to save the rule in rewrite_rules option it would ...
0
votes
1answer
12 views

Bootstrap sticky menu in WordPress

I have a menu which I have assigned the affix class using the JS and the data-spy methods but it doesn't work, there are no JS errors in my console (firefox or chrome) and the js and css of BS are at ...
0
votes
0answers
10 views

Pass custom post meta to dynamic page

We do lead generation using the gravity forms plugin for our site forms. Right now we create the marketing page with the form on it, then we create a child thank you page that the user is redirected ...
0
votes
0answers
17 views

Return sanitized colors from an array back to options?

I have this code for sanitizing my color options but I have no idea how to return my sanitized colors array back to options? Any thougts? if ( !function_exists( 'sanitize_hex_color' ) ) { ...
5
votes
2answers
105 views

Get The Post Type A Taxonomy Is Attached To

Being given a taxonomy or term, is is possible to pull any / all post types the taxonomy is attached to? For example, knowing the built in taxonomy category or being given a term in the category ...
0
votes
1answer
33 views

Cannot order by in WP_Query

I'm stuck with this issue : I'm having a custom query in which I cannot order by anything. I want to order by a specific meta_value. But event when ordering by name, title, date etc, I still can't. ...
0
votes
0answers
17 views

You do not have sufficient permissions to access this admin page

I got a problem with the "You do not have sufficient permissions to access this admin page." after logging into my wordpress, unlike other problems, mine occurred after i logged in my account into my ...
1
vote
0answers
24 views

Rendering the uploaded file in a wp.media object

I have seen this question asked a few times on SO and I don't see any responses. I have a wp.media object (upload dialog), that I am using in to store an upload to a post as a meta element. It works ...

15 30 50 per page