0
votes
0answers
8 views

How can I check the content in database wp_usermeta? [on hold]

I would like check the content in a meta_key into wp_usermeta from DB. For example check username: if ( ( the_author_meta( 'username', $current_user->ID ) ) == 'user1' ) { // do something ...
0
votes
0answers
9 views

Showing “ Notice: Undefined variable:” and “ Notice: Trying to get property of non-object”

showing "Undefined variable" and "Trying to get property of non-object" notice when using the following code while($q->have_posts()) : $q->the_post(); $newsbox_post_img_src = ...
-1
votes
0answers
6 views

ACF query and orderby custom field [on hold]

How do I query a query that queries and sorts by a custom field? This is what I have and its not working... <?php $posts = get_posts(array( 'post_type' => 'profile', ...
-1
votes
0answers
7 views

Access codes for protected content [on hold]

I have an online store and I also want to be able to give out access codes to my customers so they can register to see content that isn't available to just everyone. Is there a plugin that would ...
-3
votes
0answers
10 views

Why my Spam Comments Cleaner does not work anymore? [on hold]

I have Spam Comments Cleaner - Version 1.2 and, at first, I did not receive spam, but few days ago my email is full of spam again. What can I do? Link to site dijanaknezevic.com
0
votes
1answer
13 views

Why does “get_option” pull in the older value in options.php, rather than the newer value, on submission of a form?

I'm building a simple post order "plugin" through my theme's functions.php. The function updates the value of an option in options.php on submission of a form. So, for instance, when "1" is inputted ...
0
votes
1answer
19 views

Can't show custom post thumbnail sizes as background images

I'm trying to work out a solution for responsive background images in Wordpress to use on my clients' sites. This is what I got: 1) I created some custom thumbnail sizes: function ...
-1
votes
0answers
14 views

Add new custom field for custom taxonomy - print_r field not found

Thanks to this website, I succeeded in adding a field for my custom taxonomy (my taxonomy is called "ptype"), but when I try to use the function to save the data, I don't have my custom field in the ...
0
votes
1answer
12 views

Custom post type - change name in sidebar

I've created a custom post type, as I'm making a site which will feature job listings. I want the sidebar in the dashboard to show "Jobs" as the name. Here is my code in functions.php // Register ...
1
vote
0answers
16 views

Efficiently manage a huge number of blogs given server-side restrictions

I work in a company that is built around selling the customers WordPress blogs for a monthly fee plus some up-front money for design work. The boss envisions that we will have several thousand ...
0
votes
2answers
18 views

Having Trouble Running Query From Shortcode Using Tribe's Events Plugin

I am not getting any results back using this code, even though I am passing in correct values. Can someone please take a look? function webinar_list_shortcode($atts) { global $post; // Defaults ...
0
votes
0answers
15 views

WP site not showing front or backend content after adding htaccess

I have added an htaccess file to WP but have now lost all content front and backend. I added this htaccess plus a htpasswd file; AuthType Basic AuthName "restricted area" AuthUserFile ...
-1
votes
1answer
17 views

How to get some information from the_content

Hello in index loop 3 lastest post and i want to take only a bit o text and first photo or youtube - and here is the problem, because i can use the_excerpt or i can use get_post_meta to take text, to ...
0
votes
1answer
15 views

User gets access denied to css files and js files even though user is logged in

We are using wordpress as a intranet, we have the AD Integration plugin. Everything is working fine except for one user. Now there is no difference in settings on his machine or user profile or AD ...
2
votes
0answers
13 views

Wordpress search issue with searching html tags

I am working on a wordpress site and I am using wordpress native search. When we search for a string like "example" it searches inside html tags. ie if there is any html tag like <a ...
-1
votes
0answers
7 views

Sort of PayWall Plugin [on hold]

I'm looking for a plugin (or i'd like to know if a plugin already exists) that would work like a paywall but with that difference : - After 5 posts read for exemple, the user need, not to pay, but to ...
-1
votes
0answers
8 views

Gravity Forms: automatically populating fields by getting the data of a YouTube video [on hold]

I am using Gravity Forms on my website where people can share videos, and I want the title, description, etc. to be populated automatically by getting the data from the YouTube video. After browsing ...
0
votes
1answer
19 views

Error showing in current page id in wordpress admin

I am trying to remove a metabox ID from a page ID in the admin screen. So I have coded the following: function ag_remove_cmb_metaboxes() { global $post; $id = $post->ID; if ($id == ...
0
votes
2answers
18 views

My custom title gets duplicated at every save or post update

I have a problem, my custom title keeps getting added at every time I save the post.. First I created a Custom Post Type called 'imac' plus a front-end form for posting in this Post Type, only before ...
-1
votes
0answers
20 views

Generate PDF files from post meta [on hold]

First time I am doing this and need some experienced eyes on this so it's difficult for me to offer an example if I am not sure which library to even begin with. Currently, we're using Advanced ...
0
votes
0answers
15 views

wp_schedule_event not working

I 'm going to create a sheduled update_post_meta and for some uknown reason the function is never fired. Below is the code: add_action( 'save_post', 'scheduled_upm'); function scheduled_upm() { ...
0
votes
0answers
18 views

Save selectlist value (taxonomy) in wp:wp_set_object_terms

In my admin for part i have additional fields (like price or brand - which is taxonomy). When i edit or create new part, i set up additional data. and price saving is without any problem, but saving ...
-1
votes
0answers
7 views

add customize input field for text input into cart of woocommerce [on hold]

It's easy to insert a new input field in checkout, but the cart.php is a problem (for me). I need an additional text field. After inserting, I'll check the inputed text. Is the text okay, so I'll ...
0
votes
1answer
19 views

Order posts by date and then by custom field

I am trying to do something like this one. Ordering posts by day (not time) AND meta value I want to list blog posts ordered by date (not time) and then within that day, I want to sort them by custom ...
-1
votes
0answers
14 views

Is w3 total cache cdn automatically load files to CDN server [on hold]

Is w3 total cache CDN automatically load local files to CDN server Or manually need to upload to particular CDN.
0
votes
0answers
9 views

Add Child custom posts to custom post parent

I have one requirement to show document api, faq, videos under different parents. Example: Software and Hardware Software {software1, software2, software3} Hardware {hardware1, hardware2, ...
1
vote
0answers
7 views

Edit Custom Post Type on Custom Admin Page instead Post Admin

Background: I am still quite fresh to coding and WordPress. For me the best way to understand, is to work on a specific project. Project: I want to build a Customer Relationship Tool for WordPress ...
0
votes
1answer
13 views

Need to hide an element depending on date and post category

I've been racking my brains for a few days trying to figure this out. I'm using WP Voting on my site. I need to create a script in single.php that will remove the div that contains the voting widget ...
0
votes
2answers
12 views

get_terms() doesn't return empty terms even though hide_empty is false

I can't manage to make get_terms() to return the empty terms and I've tried it in a number of ways. Here's the code: $terms = get_terms('device',array('hide_empty' => 0)); foreach($terms as ...
0
votes
0answers
8 views

Define multisite is not working

I put the define( 'WP_ALLOW_MULTISITE',true ); in the wp-config but the network tab never shows up. I read some comments on the internet, and tried only MULTISITE, true, even WP_ENABLE_MULTISITE, but ...
0
votes
0answers
14 views

Problems with custom post_type and custom taxonomy

I'm trying to make a simple plugin that let's me create blogposts from a custom post_type (tutorials), with it's own custom taxonomies. I got this working. There are 2 problems though. 1: I also ...
0
votes
0answers
13 views

get_permalink wrongfully returns only year and month and not all the link

This is very strange and I don't know why. I am developing a theme, and in some areas I am manually creating different related news. They work perfectly, because I can start a WP_query almost ...
0
votes
0answers
15 views

w3 total cache and post__not_in

I'm using a modified version of the Recent Posts plugin together with WP Total Cache. I'm using post__not_in as I don't want to display the current post again. It works well, but if Object Cache is ...
0
votes
0answers
14 views

How to execute function/method when specific URL is called?

I have url "www.something.com/wp-content/plugins/tool_new/admin/new_tool_email.php?method=new_tool_send" I want to sent up real cron job, and when this url is called to execute method ...
0
votes
0answers
18 views

Add Search Form to Dropdown menu

I am wondering if its possible to have a search form within a dropdown menu. I can add it to the main menu (base) but not quite sure how to actually go about adding it to a sub-menu of one of the main ...
0
votes
0answers
12 views

CSS to align grid elements from loop post

I am slowly but surely getting the look of my site figured out. But I am having a bit of trouble with the CSS of the grids. I managed to get the grid laid out with simple divs, but I have a common ...
0
votes
1answer
24 views

upgrade v. 2.8.5 to latest version of wordpress

Is it possible to upgrade WordPress version 2.8.5 to 3.9.2? I am trying to upgrade but the WordPress give me the link to download the latest version of WordPress. If it is possible, how am I going to ...
0
votes
1answer
18 views

Add Different Actions To Different Page's wp_footer

I am trying to add functions to wp_footer based on the the page id. I am hooking my callback to init, but its not working. Here is what I am using. function fl_template_loader() { if ( is_page( ...
-1
votes
0answers
10 views

Buyers and Seller Woocommerce [on hold]

Hi I want to build a wordpress ecommerce site. Is it possible to have 2 accounts that user can create? For example BUYERS AND SELLER but only 1 registration and login. Different scope for each user ...
0
votes
0answers
15 views

Display Custom Post Type and Custom Taxonomy Data on Front End Using Only a Plugin

Can anyone suggest a good plugin-based, as opposed to template or theme-based, solution for the following that doesn't rely on shortcodes? I have a plugin that creates a custom post type and four ...
0
votes
1answer
11 views

Get the author registration date in the header.php file

I have some code that executes in header.php as follows: if (is_author()) { $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author)); ...
0
votes
0answers
17 views

Write CSV from array or custom $wpdb query results

Inside a template page I do a $wpdb query with two dates recieved from POST method. I process the query results into an array, and then I show them in a table. I want to offer a link to download the ...
0
votes
1answer
12 views

Show Post Content with AJAX

I want to do a very basic AJAX call where, on click of a list item, a container div fills with associated content pulled from a Wordpress page. I'm a newb with AJAX; I've tried a few different routes ...
0
votes
0answers
6 views

Remove Rewrite Rule

after adding a rule: add_action( 'init', 'wpse26388_rewrites_init' ); function wpse26388_rewrites_init(){ add_rewrite_rule( 'usuario/([0-9]+)/?$', ...
-1
votes
1answer
13 views

Customizing Responsive Themes Menu [on hold]

I use the popular theme: https://wordpress.org/themes/responsive I would like to change the color of one of the menu items and if possible also have a jquery popup from one of the menu items. How can ...
0
votes
0answers
16 views

How do I get Wordpress menus to display vertically using Bootstrap?

I've integrated Bootstrap 3 into a TwentyEleven Child Theme on Wordpress. All is going well except the menu. As you can see on this page when you resize the window and the navigation collapses but ...
0
votes
0answers
7 views

How to add a custom orderby option to WooCommerce that sorts by a specific category (in this case “Brands”) [on hold]

Say I have a Brands category and within that I have a few subcategories (Brand X, Brand Z, Brand A, and Brand X). I’d like to add an orderby option to the dropdown that will sort the product ...
0
votes
0answers
8 views

How to send default value with new parameter on 'add_filter' [duplicate]

I'm filtering the_content and want to pass a second parameter with the filter for context. My problem is, I don't know how to pass the default value, $content as well as my new parameter, ...
0
votes
0answers
3 views

Server Side Includes not working in text widget

I'm trying to add Server Side Include code to a WordPress text widget, but the content is not being displayed. I've added SSI before on my non-WP site, but for some reason its not working with my WP ...
0
votes
0answers
6 views

Proper way to pass credentials in a custom login form to avoid “headers already sent”

I'm working on a custom login page plugin. I'm trying to figure out how to log the user in without creating "headers already sent" errors. I was calling wp_signon directly after the user clicked ...

15 30 50 per page