0
votes
1answer
6 views

Cutomize Colors utility: How to add more configurable colors to a theme

Recent Wordpress install, default theme. There are three colors which can be customized from the admin gui, but there are at least three other colors visible on the website which can't be customized ...
0
votes
1answer
25 views

add login menu with submenu

I need to add "Login" to main nav-menu. with sub menu "register" (link http://www.vcanade.ca/register/) After user logged in, "Login" has to change to his username with sub menus "profile" (link ...
0
votes
1answer
21 views

How I can add div to menu?

I have div structure <div class = 'main-menu'> <ul class = 'menu'> <li class = 'item1'></li> <li class = 'item2'></li> </ul> </div> But I want ...
0
votes
1answer
14 views

API calls on plugin activation or init?

When I activate my plugin, I need to call an API, to get some items, lets say fruits, flowers and animals. I need to create taxonomy terms out of these items. Then I need to loop over these items and ...
0
votes
1answer
18 views

Display 'modified date' in Wordpress Twenty Fourteen

Could anyone tell me how I can show the modified date from posts to my readers? I use Wordpress Twenty Fourteen with the Twenty Fourteen Extended plugin. Structured Data testing Tool already shows ...
0
votes
1answer
19 views

How can I remove these resize lines from the comment box?

How can I remove these resize lines from the comment box? http://prntscr.com/8awm1c I'm using the theme twentyfifteen. I don't know where to locate them in the file manager or even the source code!
0
votes
1answer
14 views

Manage multiple wordpress installs (Best Practice)

Our company has multiple blogging platforms on which some of our people post on. The list of platforms keeps on growing and so keeping everything up to date can be rather bothersome. So we were ...
0
votes
1answer
8 views

Exceeded the virtual memory limit

I've launched website a few weeks ago using WP. I've started getting messages from my web host saying "Your website.com web hosting account exceeded one or more of its resources within the last 12 ...
0
votes
1answer
16 views

Creating custom Menu for custom theme

I want to create a custom menu for my theme. The default menu architecture created by wordpress wp_nav_menu() function is made by <ul> <li> tags. But my custom Menu architecture is: ...
0
votes
1answer
22 views

Custom Javascript not working?

Basically I want the effect to look as it does here But mine won't do the effect I currently have a button but it won't activate the effect for the menu to pop open. site that I'm using to test it ...
0
votes
1answer
27 views

Passing form data via AJAX to REST API And displaying results

I'm new to WordPress but have been programming PHP for a long time... I searched a bunch of questions but couldn't find what I need. I have a page with a search form that contains a few parameters ...
0
votes
1answer
14 views

Echo out custom fields in comments

I am trying to figure out how to echo 4 created fields from a plugin in my theme template for the comment form and customize the comments output as well. The plugin I am using lets me add custom ...
0
votes
1answer
4 views

Categories dropdown with all values selected using wp_dropdown_categories

I'm using this code to get a dropdown list of categories, but all options are marked as selected. Therefore, the last option is the one that is displayed as selected by default. <?php ...
0
votes
1answer
19 views

My custom page template with is_user_logged_in() does not detect that I'm logged in

I have a custom page template that looks like this: <?php if( is_user_logged_in() ): ?> <?php get_header(); ?> <?php while ( have_posts() ) : the_post(); ?> <?php ...
0
votes
1answer
18 views

Featured images not showing up

I´m having a strange issue with featured images. Here´s what I did: Added theme support for featured images with add_theme_support( 'post-thumbnails' ); Attached a featured image to each post ...
0
votes
1answer
14 views

Why would media_sideload_image() not work locally?

I designed a theme for a client that sideloads an image returned from an API. It has always worked and it's still working on their live website. My staging environment used to be a separate account ...
0
votes
1answer
27 views

Showing content from one page on another

There are many posts that seem to strike around this area, but I'm more and more confused by each one I read. I have a page that shows the "Terms of Service" (id = 1086). I would like to display the ...
0
votes
1answer
13 views

send email to author of post on post submission

i am using wordpress directory theme.I want to send email to author of the post whenever he publish a new post. currently email is just sent to administrator only.i didnt find any code utilizing ...
0
votes
1answer
10 views

Genesis - 1 page website - How to display secondary menu Navigation on Blog pages

I have a 1 page website with a sticky menu. It scrolls down to different #ids(sections) of that page. My problem is the Blog section. When you click to go to the Blog (any post), the Primary ...
0
votes
1answer
17 views

Bootstrap dropdownl nav pills not working as wordpress drop down menu

I am using Bootstrap nav pills with drop-down items as WordPress menu, the menu without drop-down is looking good but when I add nested ul as drop-down the menu not working as expected.. HTML ...
0
votes
1answer
14 views

Custom Taxonomy and Rewrite URL

I'm fixing some custom templates. There is this custom taxonomies add_action( 'init', 'custom_taxonomies', 0 ); function custom_taxonomies() { register_taxonomy('news_category', 'stfp_news', array( ...
0
votes
1answer
11 views

Stop the execution of foreach loop which extract data from array?

In detail the condition is There are multiple new users to whom admin want to send welcome message but only once for each member. I have done sending message but if the member refresh his email page ...
0
votes
1answer
16 views

My wp-admin stops working suddenly

wp-admin stopped working suddenly. I have checked the .htaccess file as well as wp config. However still it's not working. Site is working correctly but wp-admin page re-directs to to auth=1. Don't ...
0
votes
1answer
21 views

Check if a user is connected and get is ID without fully loading wordpress

I'm writing an advanced cache for WP. I try to make it works with connected users. I want to calculate a user context hash. To build my hash I need a way to quickly know if the user is logged and get ...
0
votes
1answer
7 views

reply to comment excerpt instead of author in comment title

One can reply to a comment using Reply link, below each comment item in comments list. According to codex, by clicking that link and using comment_form_title function like this: $replytext = 'Leave ...
0
votes
1answer
9 views

How to get variable from function.php to loop file

i had code in function.php file : $selective = new WP_Query($args_selective); get_template_part( $loopFile ); i cant get $seletive in my loop file. Help me pls. Thanks for any answer !
0
votes
1answer
16 views

404 redirect based on url

I have a link like this: https://www.example.com/bh-job/38/?title=digital-marketing-intelligence-expert When I surf to the page I'm redirected 404 page because the page doesn't exisit. The page ...
0
votes
1answer
11 views

I can access subdirectory, but not files within it

I want to first point out that I have tried to solutions listed in this post and in every case it either hasn't worked or hasn't been appropriate for what I'm trying to do. I have tried several ...
0
votes
1answer
12 views

How to create 30 new sites from an export of a master site?

I am an admin for a Wordpress multisite instance at a college. I need to create 30 new wordpress sites, each for a similar course. The content is going to be copied from a "master" wordpress site ...
0
votes
1answer
18 views

Automatically add tag if a checkbox is checked

I'm looking for a simple function to automatically add a specific tag to a post if a checkbox is checked. For example: When creating a post there is a checkbox that says: "Add example tag to post" ...
0
votes
1answer
15 views

How to hide posts count and posts of other users from edit.php for contributors and authors

I am using wordpress latest version and running a multi author blog. When any user (contributor or author) go to edit.php, they are seeing posts and post counts of other users. I hide the posts of ...
0
votes
1answer
17 views

Allow non-admin users to access plug-in

I want users who are not Administrator to be able to use my Calendar plugin, but it is not available on the dashboard except to Administrator.
0
votes
1answer
18 views

500 Internal Server Error on a WordPress site

My site was hacked some weeks ago. I have deleted the old files and copied a backup file on the server. For some reason it is showing 500 internal server error. What have I tried? I have tried to ...
0
votes
1answer
12 views

Add a function call after content automatically?

I want to add a function call in the single post page after the content, one way is that I add it in the single page template, eg. <div id="content"> <?php the_content(); ?> ...
0
votes
1answer
8 views

Comment form Dissappeared in posts

I suddenly noticed that comments and comment form never shows up in my website's posts: Comments in page shows up. but in post there is no comment. In single.php I have the <?php ...
0
votes
1answer
22 views

Add Admin menus or submenus depending on conditions

I have two plugins in two different files that add a submenu (the plugin title) to the admin panel like this: Plugin 1: function myplugin1_setup_submenu(){ add_submenu_page("mybrand", "My ...
0
votes
1answer
13 views

What Role to assign remote site developer?

We have hired a developer who we communicate with via upwork. We want him to be able to make any changes to the site, except to boot us out! Which Role should we assign to him - Admin? If so, is there ...
0
votes
1answer
16 views

WP_Query always returning the last custom post

I have code that works fine on our live system, and I'm porting it to a new theme. In the new theme, the WP_Query always seems to return the last custom post. My function is: function ...
0
votes
1answer
14 views

Get post thumbnail to display favorites

I use this line: echo (the_user_favorites_list($user_id = um_profile_id(), $site_id = null, $include_links = true, $filters = null, $post_thumbnail_id = get_post_thumbnail_id())); to display a ...
0
votes
1answer
11 views

Send data to database after redirect (and popping out of iframe)

I am using $wpdb->insert to place form data into a custom database. There a multiple things happening, though. The page that sends the data to the database is caught in an iframe. I know how to get it ...
0
votes
1answer
15 views

Using wp-cli can I not query pages by their title?

All of these do the same thing: wp post list --post_type=page wp post list --post_type=page --post_title=dfdsfds wp post list --post_type=page --title=sdfdsf How can I query the post by the title? ...
0
votes
1answer
32 views

How to create a Top 10 Popular Posts Page?

I need to create a "Popular Posts Page", that shows the Top 10 most viewed posts of all the time, based on the high number of views. Any help?
0
votes
1answer
35 views

How can I edit comment meta value before it is saved?

I have introduced a custom field in comments form using add_comment_meta() function. I would like to know if there is a way to edit the data of the comment meta just before the post data is saved so ...
0
votes
1answer
16 views

Disable Media File Image Link On Mobile Devices

I'm looking to disable the 'media file' image link on mobile devices, so that when viewing a site on mobile devices we simply have the image being displayed with no link to anything. I am looking to ...
0
votes
1answer
26 views

Utilizing the template hierarchy while storing page templates in a subdirectory

I'd like to store the page templates for my theme in their own directory, /pages/ for example. I'd also like to utilize the page-{slug}.php functionality of the Template Hierarchy, and not have to ...
0
votes
1answer
27 views

Nonce and widget

I've been screening the code of several widget and haven't found any one of them handling nonce. I also took a look at the WP_Widget class and found nothing about it as well. This is from the codex: ...
0
votes
1answer
18 views

Why are carriage returns deleted in the editor?

I'm not sure why this is happening but after I add a blank line between paragraphs and click update or go to text view and back to visual, the blank lines are gone. I can't put any space between ...
0
votes
1answer
10 views

add_editor_style is not working

I've reviewed various blog posts, stackexchange topics, etc, but can find no way to get add_editor_style() to work in WordPress 4.1.5. Is anyone having any luck getting this function to work in ...
0
votes
1answer
15 views

Is there an security risk with using wp_signon function?

Question 1: I'm new to wp and trying to write a plugin for custom register and login. There is a function called wp_signon() which can help to login the user, but can i just use get variables from ...
0
votes
1answer
13 views

Adding direct link to post editor in admin menu

I'm trying to make a shortcut in navigation that will take user to one certain post. So far I'm using add_action('admin_menu', 'add_custom_menu_position'); function add_custom_menu_position() { ...

15 30 50 per page