-1
votes
1answer
14 views

Woocommerce update causes fatal error on plugin [on hold]

I created a plugin to include a payment gateway on Wooccommerce. It worked fine until the current Woocommerce update. Now, I get the error: Fatal error: Call to undefined method ...
0
votes
1answer
13 views

Check If post id exist in custom post type , outside of loop

How can I search in database if id exist in a post type?. I want to search $id=123 in post type 'movies' like this, is this the correct way to do it? $content = ...
0
votes
2answers
18 views

How to preview your website without the top WordPress admin bar, but remain signed in?

Is there a way to preview your website without the top WordPress admin bar, but remain signed in? Basically, want to continue making changes in the panel and review the site, but without the top ...
0
votes
0answers
4 views

500 Internal Server Error when trying to visit revision page [on hold]

I have site that works fine except when going to page like /wp-admin/revision.php?revision=1111 I get error 500 Internal Server Error. Strange thing is that this only happens to one revision. Others ...
0
votes
0answers
29 views

How to figure out which plugin or theme is adding google analytics

Google-Analytics.js is being called on the website, but I can't figure out what is calling it. This is all the shows in the Dev Tools: <script async="" ...
0
votes
0answers
4 views

simple custom lightbox failing

I've built a simple lightbox, easy enough with organic pages, I have the code working on codepen and a local file, however the second I throw it in wordpress it isn't working, maybe you guys can help ...
0
votes
0answers
8 views

How to alter permalinks with sub-domain url structure?

I have created a Wordpress install on a sub-domain of my server. So for example my url is www.myUrl.com and I created a subdomain that is essentially www.myUrl.com/sub. I installed Wordpress on ...
0
votes
1answer
16 views

Selecting NULL value from the database

I have a database with columns that are allowed to be NULL. Whenever I run a query against this database using $wpdb->get_results the columns that are NULL are always returned with an actual ...
0
votes
0answers
12 views

How can I force-load a plugin's translation files from wp-content/languages?

I'm trying to change instances of the word "blog" to "site" for the plugin bp-groupblog. I've copied the .pot file to a .po file, successfully translated all the necessary strings, and successfully ...
0
votes
1answer
30 views

Remove_action from plugin with a Class

I've searched around but haven't been able to find a solution to this. I'm trying to hook in and remove an action that was initiated by a plugin (specifically the Groups plugin). The function itself ...
0
votes
0answers
7 views

How to prevent a theme from rewriting url [on hold]

I am using AEGAEUS Wordpress theme. Recently I developped a plugin which generates a form where I can get autocompletion of cities and zips I type based on the selected country. The problem is when I ...
0
votes
0answers
25 views

Deploying from test/staging environment

I'm planning to use wordpress with dev/staging/prod environments using git. I have a simple question, what is the best practice to deploy content like posts or pages. Do you use any plugins that will ...
0
votes
0answers
11 views

Setting default thumbnail when posting a link to archive page

Is there a way to set a default thumbnail for archive pages when posting a link, ie: on someone's FaceBook wall? For example, posting a link to a FaceBook wall will show up as: [thumbnail] Link and ...
2
votes
0answers
45 views

Implementing a general Table of Content across single paginated post pages

I am working on a blog and most of my posts are so long they require pagination. See one of my posts. This post has a lot of pages. The only problem is that I can't find a way to show a table of ...
0
votes
1answer
27 views

Use a template file for a specific url without creating a page

I wonder if its possible to use a template file for a specific url without having to create a page for that template. This is my simplified problem: I have created a page in WP with some link ...
0
votes
1answer
16 views

How to get_post_meta in a shortcode in excerpt on archive pages

I have a shortcode, [foo], which displays the value in a custom field. However, as it appears near the top of each post, it is included in the excerpt. function foo_shortcode(){ global $post; ...
0
votes
1answer
21 views

How to make the Pages in WordPress Customized?

I have a Theme I like. The front page is terrific. However, the pages have horrible formatting. How do I bypass this & get my own page formatting? (I know I have done this before...) If possible, ...
0
votes
1answer
26 views

How to get a category in a list item class

I am need to know how would I get the category to be dynamically input in a WP_Query This is the code I am using: <li class="<?php the_category(' ')?>"> but the output is breaking. ...
0
votes
1answer
22 views

How to get html tag ids from template?

I'm new with WP so I need advice. I'm workig on plugin where is required adding some new atrributes to selected div or paragraph. Is there any way how to get html tag (DOM) IDs from current template? ...
0
votes
0answers
11 views

Calling the correct permalink via form action

Okay, I have a bit of an issue with my sites search widget If you go to this category page (for example): http://socialvenues.com.au/melbourne/function-rooms then select a region and then city (for ...
0
votes
0answers
34 views

Total Post type count display wrong, any idea?

Why are the total number of posts not the same? Any suggestions?
0
votes
1answer
12 views

Allow editors access to added plugins

I created a custom plugin which i want Users who are Editors to be able to use the plugin. I found a link here to allow access for editors to allow editors to edit menusallow editors to edit menus? ...
-1
votes
1answer
10 views

can't import .sql file to server [on hold]

I always use these methods to upload my database file from local to phpmyadmin : Get the .sql file from localhost phpmyadmin Open that in notepad and change localhost to www.sitename.com Finally ...
-1
votes
0answers
8 views

Espied theme - full-size images get downscaled [on hold]

i want to set up a quick and easy portfolio, which i did so far. Only problem i have is the full size images The demo looks like this: https://espieddemo.wordpress.com/portfolio/chrome-for-ios7-2/ ...
0
votes
0answers
10 views

Defining class variables from csv; sharing variables between functions

I'm struggling to get these variables defined, as well as pass them to other functions which need access to them. What am I doing wrong? I understand that to use a variable within a class, you use ...
0
votes
1answer
11 views

How to type shortcode-like text in WordPress TinyMCE visual editor?

Suppose, I have a plugin which is offering a shortcode for its users: [my-shortcode]. Now I want to post an advertisement in a page of my WordPress powered blog like the following: Hey you can use ...
0
votes
0answers
21 views

My about me page doesn't work [on hold]

I created pages for my website such as the about me section. It shows up on the menu on the top of my page. However, when I click on my about me page the content does not appear. It loads and shows ...
0
votes
0answers
15 views

Best way to remove slug from custom type?

I need to remove a certain slug from a custom type item in Wordpress. Just now my URLs are like this: http://example.com/item/random and I want them like this: http://example.com/random I have ...
0
votes
0answers
16 views

Automatic switch categories

I have a question concerning the categories of wordpress . In the event that I had two categories, CAT1 and CAT2 and I wanted to automate switching between them as it should. Let me explain . How ...
0
votes
1answer
43 views

Return array from foreach [on hold]

I have a problem with this class in the administrative area of wordpress. I would like to return the value of foreach, but unfortunately returns an empty variable! If I use the print_r inside the ...
0
votes
2answers
48 views

Import users once a day without a plugin

I need to import users to my WP database once a day. So I have a script that runs once a day to do an action. The problem that I'm having is that I'm a little over my head on this one. Another ...
0
votes
0answers
9 views

E_ERROR: Unknown: Cannot use output buffering in output buffering display handlers [on hold]

I'm using Newrelic app to catch any error in server. So here is the latest error that I've found. It doesnt affect anything but just in case I want to ask. E_ERROR: Unknown: Cannot use output ...
-1
votes
0answers
14 views

How to create custom dynamic page in wordpress? [on hold]

<ul class="jobs-area-ul01"> <li> <div class="jobs-area-ul-dv"> <div class="left jobs-area-ul-left-area"> <i ...
0
votes
0answers
13 views

Menu add items to li for responsive

I am new to wordpress development and am working on understanding 'walkers" and adding on to the navigation. I am working on a theme build out using the 2013 as it seems like a solid responsive theme ...
0
votes
0answers
20 views

Custom query with pagination on home page

My home page need to retrieve some posts and break them into number of pages, so that I can load them using infinite scroll plugin. I have tested my query, it works as expected. however I can't seems ...
0
votes
1answer
57 views

“Reply-to Address” Email

I searched the web for last couple of days for "Reply-to Address" in the email but had no luck so, here I am. In my wordpress site, there are multiple store owners who can sell their products. When ...
1
vote
1answer
27 views

Create and set templates for custom taxonomies

I've created a custom taxonomy for a custom post type. Code: add_action( 'init', 'register_taxonomy_mytaxonomies' ); function register_taxonomy_mytaxonomies() { $labels = array( ...
0
votes
0answers
15 views

Can I run multiple queries with $wpdb->prepare?

I have a query(actually multiple queries) that runs perfectly in phpmyadmin, (I've also tried get_var in place of get_results, but I think I might need an alternative to $wpdb->prepare. How can I ...
0
votes
1answer
27 views

Change variable value for different shortcode attributes?

Suppose I have a function that needs to be able to load a file depending upon an attribute in a shortcode: [open_file ex1] How would I go about defining which file name is set as $csv depending ...
0
votes
0answers
16 views

media_handle_upload changes the file name

I am using media_handle_upload for my custom plugin using php. base from this example https://codex.wordpress.org/Function_Reference/media_handle_upload and I am using this code base on the example : ...
0
votes
2answers
20 views

How to style posts selecting a CSS post_class (added through custom_fields?)?

Here is what I tried and couldn't reach it. Maybe I need a whole different approach? 1) I created a custom field in a post, called post-class and inserted the value cita-flow800000 (weird class name ...
0
votes
1answer
18 views

Custom display for homepage, tag and author pages

I need to have pages where the first post on the page has a special format. I've figured out how to modify loop-home.php to get the result I want outputted on the homepage. I want to have the same ...
0
votes
2answers
20 views

Display Users and user url's

I need some help I have the iteration working for listing the wordpress users however I also want to wrap their names in links and can't seem to get the user url to work... Nothing is returned to me. ...
0
votes
0answers
11 views

Add_action does not work

I am trying to make a coming soon page with a small form for subscribers who want to be informed about future developments. Therefore, I want to make a subscribe.php file, located in the root ...
0
votes
0answers
17 views

Calculate top authors on the basis of Post Views

I wanted to calculate the Top authors on the single.php page according to the average of the posts views. I have created a function which is calculating the average of the total post views of a ...
0
votes
4answers
40 views

How do you post in a specific page? [on hold]

I just started using Wordpress (free version) using the Sela Theme. I have a menu at the top (including About, Contact, etc.). I want to know how I can post to a specific page without it JUST going ...
2
votes
1answer
34 views

How to use wp_dequeue_style() for style enqueued in WP_Widget class

I've got a plugin that makes a widget that enqueues some front-end CSS to style the widdget. I call wp_enqueue_style from the public widget() method in the extended WP_Widget class: <?php class ...
0
votes
0answers
7 views

add Reply functionality to comments using comment_text()

I am trying to write my first Wordpress theme. On the comment section i use the comment_text() to show the comments on the single.php of the theme. I would love to add a "Reply" button, but i ...
1
vote
1answer
32 views

Getting headers property from WP_Theme object

Using wp_get_theme returns an object holding the properties of the current theme. The headers property contains any array of information I wish to access. I can access the other properties using ...
0
votes
0answers
15 views

How to add a date and time as wp category?

I would like to know if there is way to register the two following categories in the back end : Date : Start and End Time : Start and End

15 30 50 per page