0
votes
2answers
9 views

How to enqueue JavaScripts in a plugin

I am struggling a lot this time working on including a JavaScript files in plugin folder. I am trying to create a plugin by transferring widget files from themes directory. I copied the widget file, ...
0
votes
0answers
4 views

woocommerce product link including category-name and with /product/

I like to change the product link in woocommerce. Now it is www.shop.com/product/test-product-123/ But I like the category inclosed instead of the text /product/ Result would be: ...
0
votes
0answers
9 views

Strange issue with custom fields not showing data for certain posts but working fine on others

I have a very strange issue with custom fields on my site. I am using the custom fields for custom post types. So lets say the custom post type is called "cars". I will have various custom fields like ...
0
votes
0answers
4 views

How to create new post content templates for my users?

I admin a wordpress site for my kids primary school. At the number of editors/contributors is small, but we'd like to expand it. To simplify the uptake for some of the office staff I'd like to have ...
-1
votes
0answers
5 views

Add custom icon by category on google map

I know how to add custom icon instead of marker But only if there is only one marker map. In case of multiple marker by category is much tricky for me. I also don't have enough knowledge of js. ...
0
votes
0answers
6 views

Why Password not work when new user registration

I have problem in registration new user in my site, that i have form in frontpage that can user registration in my site, But the problem is when user write password in registration and go to login ...
0
votes
1answer
9 views

Displaying text if post was within 5 hours

Currently I have the following string. $timeago = human_time_diff( get_the_time('U'), current_time('timestamp') ); print $timeago; This returns results that looks like this. 1 min, 1 hour, 1 week, ...
-2
votes
0answers
11 views

Generate pre-built visuals with Post text

Anyone can give me a hint: I need to have on my website a "Generate Visual" button - that will take my post text and give me several different templates where I can make visuals of. Explanation: I ...
-2
votes
0answers
7 views

How to open registration and login only via social media accounts? [on hold]

How to open registration and login only via social media accounts in My WordPress blog?
0
votes
0answers
9 views

How to get custom posts sub category link

I'm trying to echo custom posts sub category link as a view more option.For the last week, i am trying to do that, but i just can't find the right way. I've tried, category links, terms, with args, ...
0
votes
1answer
19 views

Run JS Code on userlog out

I'm trying to delete a variable stored in local storage when user logs out of WordPress, none of the two code blocks below work for me, both have been tested in my functions.php file one at a time. ...
0
votes
1answer
7 views

How can I display one product using WooCommerce

I can't seem to find the function that does this I the API docs of WooCommerce. Is the a function that allows me to display one a couple of products that are under a specific category or tag?
0
votes
1answer
8 views

What happens to my older posts if I switch to a child theme?

I have a theme that has one custom post type. I want to mess with its templates and styles.css file. What happens to my older custom posts in case I switch to using the child theme. Do they vanish?
-1
votes
1answer
27 views

What is the difference between style.css and index.php

I have looked through internet but I have failed to understand what is each these files are for.
0
votes
0answers
6 views

Remove margin from CSS gradient color code

I'm trying to use a CSS gradient code within a container that has a border and 30px margin, but this code is filling the margin space too. I want the margin to be left out of the gradient. I tried ...
0
votes
0answers
14 views

wp_reset_postdata() and wp_reset_query() inside shortcode are not working to reset original page query

I'm implementing a form for a frontend post with a shortcode. The form is processed in the same function, reloading the page: function adicionar_ninhada(){ $user_id = get_current_user_id(); if ...
-2
votes
0answers
10 views

Display posts on page template where category matches the page's custom field

I'm attempting to create a page template that displays posts that have a category that matches that page's custom field values. In the page template I have a custom field named "Page Category". If ...
0
votes
1answer
21 views

Show my custom post id if a country or ip

I explain. When a user wants to see the country come my website, for example my url: my-post-example.html I would like to capture the id and display content with the template, etct I have done in ...
0
votes
1answer
13 views

This doesnt work for Plugin get_template_directory_uri()

function Zumper_widget_enqueue_script() { wp_enqueue_script('jquery-repeater-form',get_template_directory_uri().'/admin/js/sample.js'); } add_action('admin_print_scripts-widgets.php', ...
1
vote
1answer
22 views

How do I Use Nested Loops of Custom Post Types for MultiSite Blogs using WP_Query()

I'm using the code from miguelpeixe's 'WordPress Query Multisite' in order to create a custom loop for my WP Multi-site's 'child sites.' Within this loop, I want to nest another loop that will pull ...
-2
votes
0answers
10 views

What is the code for showing Custom Category and Subcategory Page?

hello We have categories and subcategories like this : - Category 1 -- SubCategory 1 -- SubCategory 2 -- SubCategory 3 - Category 2 - Category 3 I have one style for all Categories **level 1** and one ...
0
votes
0answers
10 views

Fatal Error allowed memory size in post.php

i have this problem with i try update my menu from admin panel Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in ...
0
votes
0answers
7 views

How can I track registered wordpress users with Clicky analytics by user role?

I use Yoast's Clicky analytics plugin to easily integrate Clicky tracking for my wordpress website. (I tagged this question with the google-analytics tag because I do not have enough points to create ...
0
votes
1answer
11 views

How to add settings subpage from a plugin to a settings page created in theme?

I'm using add_menu_page(...) from a custom theme and I want to add subpages to that menu with add_submenu_page(...) . If I try to do it from the theme it works as expected but when I try the same from ...
0
votes
0answers
14 views

Javascript attr href not appending parameters on WordPress site

I have this exact code set up and running on a regular HTML/PHP site but when I tried setting it up in WordPress, it doesn't work. The code itself works, the Javascript is present when I view the ...
0
votes
0answers
12 views

When attempting to update a self-hosted WordPress site, I'm seeing “ASN1 unknown message digest algorithm”

I've got several WordPress sites that I self-host on a Windows Server. When attempting to perform the upgrade process, via /wp-admin/update-core.php?action=do-core-upgrade I see the following error: ...
0
votes
0answers
14 views

Custom while loop for hierarchical display of a taxonomy

I'm trying to build an automated mega menu that loops through all product-category terms and displays them in a hierarchical underscored list, as well as including post in each term. For example, ...
0
votes
2answers
28 views

Pagination in plugin with custom post type

I have several custom post types (created through CPT UI plugin). I want to display posts from these post types on my page, for example "News". I've created a page and inserted in it shortcode ...
0
votes
1answer
19 views

Append woocommerce category to product title globally?

I am trying to append the product category to the product title in woocommerce, this needs to be on a global level (so it works everywhere). Ive tried the following code which I thought would work ...
0
votes
1answer
27 views

Keeping social share count after changing to https

Is they a way to keep social share counts after changing an WP site from http to https? I will use CloudFlare https Flexible. Thanks
0
votes
1answer
8 views

WordPress menu>Custom Link: removing my link formatting and adding %20

I am pasting this url: <a href="#" id="event_inquiryToggle">TEST</a> into WordPress Custom Link menu item. When I hit save it saves it as such: ...
0
votes
0answers
5 views

comments sorting incorrectly across multiple pages

This is a related_comments.php file which should display comments on certain pages in ascending order while the newest comment should be at the top. This is working fine if there is only one page for ...
0
votes
1answer
10 views

Saving file to disk receiving fopen error

I have a requirement to save a json file to disk. I've got as far a the below php. However i get the following error. fopen(/wp-content/content/uploads/artworks.js): failed to open stream: No ...
0
votes
0answers
7 views

Best way to perform push server tasks in background

I'm currently developing a server-side back end for my Wordpress blog to send out push notifications to my iOS app each time a new post is published. When the required php function is called via ...
1
vote
1answer
16 views

Mixed Content warnings google fonts

I installed a ssl certificate to my blog and moved everything from http to https. But I still get duplicate content warnings that the google fonts are loaded via http. I can't seem to find where I can ...
0
votes
0answers
11 views

Shortcode: text content ends up outside html tags

I have a shortcode which loops through a custom post type. It is supposed to output a link and a title for each post. But the result is that the divs and link tags that are created are empty, while ...
-1
votes
0answers
7 views

Taxonomy based dynamic rewrite

I have a hierarchical taxonomy, something akin to: Term1 Term1/Subterm11 Term1/Subterm12 Term2 Term2/Subterm21 ... And I'd like to get all the posts for a given taxonomy when accessing ...
0
votes
1answer
38 views

Meta Query with date and time on the same Day before given time

I have a metaquery for a custom post type "events". Their start date is stored as a meta field in this format: 2016-02-05 19:00:00 These are my query args: $args = array( "posts_per_page" ...
0
votes
2answers
32 views

the_content() stop images being pulled through

I have created a custom post type to pull through the date, title, thumbnail and content, some of the posts have images and the_content() is pulling through those images and I don't know how to stop ...
0
votes
0answers
12 views

Theme Customizer not loading

I have created a new theme and i use it in some of my sites (multisite) but at one site the customizer preview does not load (spinner never stops). Loading the customizer preview of other themes work ...
0
votes
0answers
9 views

Media library only shows for admin. Doesn't show editor or below

There is no problem of viewing the media as an administrator. But when we login as an editor any other lower roles the media library does not load the content (see screenshot). It does work on this ...
-3
votes
0answers
22 views

Site won't work in Internet Explorer [on hold]

I know it is a lot of questions about people asking about their wp-sites does not work in IE, but non of them answers how to fix it. My question: My website ( lifekeys.no ) is hostet by GoDaddy. This ...
0
votes
2answers
21 views

Hook to get the page template that is in use on the admin page edit screen?

I would like to find out which page template is in use as I only want to enqueue some javascript if the page is using a certain template. Is this possible?
0
votes
0answers
15 views

InDesign to Wordpress

I need to be able to import from InDesign to wordpress Post/Custom Post Type content without losing headings,tables. There is a client that uses InDesign to write his book, and now wants to use ...
0
votes
0answers
12 views

featured image rss feed in a category

I want to get the featured image in my RSS feed in a specific category. With the principal rss feed mywebsite.com/feed , I have no problem. Featured images are displaying. When I want to create a rss ...
4
votes
1answer
34 views

Paged Single Post doesn't redirect to the main url after Removing Pagination

I used <!--nextpage--> (Codex) to paginate (split) a few single posts. Now i removed all the nextpage html parts from the posts. everthing looks fine. Unfortunately the old urls like ...
0
votes
1answer
12 views

Make WordPress User Name the Email Address When Register

Is it possible to make WordPress user name the Email Address? when user register in my site. So unername could be hidden or not required and is replaced with email address. I use WP User Frontend ...
0
votes
0answers
9 views

angularjs not displaying all posts

I learned about angularjs today and I am trying to create a page for my search results so that I can be able to create facet filters. Currently I have a page template with the following code -- ...
0
votes
0answers
8 views

Adding a custom product filter

I'm currently working with woo-commerce. I'm looking to add a custom product filter (I'm looking to build this as a learning exercise), currently my product categories pull back all products in that ...
1
vote
3answers
34 views

Can we allow users to choose front page from theme options?

I know it's easy to choose Front Static page from settings>reading>front page. However, I am looking for a way to have this feature in theme options. Can we do this?

15 30 50 per page