0
votes
0answers
5 views

Custom post with more than one custom taxonomy

The the code below pulls the 'plan type' taxonomy from the custom post type 'floorplan' and displays the posts accordingly, that works great. The problem I'm having is that it works only when each ...
1
vote
0answers
5 views

Ignoring initial articles (like 'a', 'an' or 'the') when sorting queries?

I'm currently trying to output a list of music titles and would like to have the sorting ignore (but still display) the initial article of the title. For example if I had a list of bands it will be ...
0
votes
0answers
2 views

Sort users by userID by default on users.php

I want to sort users by UserID on users.php by default. Its currently ordered by username as default. Is their any hook to alter the order_by option on users.php ?
0
votes
0answers
3 views

How do I add a button to TinyMCE Editor that adds the <cite> tag

I do not understand how to add buttons to the TinyMCE editor. Just like the "bold" button, I want a button that wraps the selected text in <cite> tags. Could someone show me how to do this?
0
votes
0answers
5 views

mu_plugin not updating html code in head

I am trying to insert code in head tag through mu_plugin. I don't know why head tag and init is not updating by using add_action('wp_head', 'my_function') and add_action('init', 'my_function2'). My ...
0
votes
1answer
7 views

Creating a custom post type upon registration

I'm struggling to find the best/quick easy solution to this problem: I have a plugin that creates companies but stores all of the company info as a user so all information is in the user's profile. ...
0
votes
0answers
4 views

track logged in user link/clicks

I'm stumped here. I'm trying to track specific links on my site and report back time stamp of when a user clicked that link. These are for specific downloads and only registered users can access the ...
0
votes
1answer
14 views

Prevent WordPress from messing my HTML

Is there a way to prevent WP from modifying my perfectly fine HTML? When writing content of a page, I'm writing a list as <ol> <li>Paragraph 1 : text Some more text</li> ...
0
votes
0answers
4 views

Integrating Orbit slider into wordpress through custom post type

I am currently working with FoundationPress, It is a great starter theme loaded with cool features. I would like to create a custom post type called "slides" which will be displayed on the homepage ...
0
votes
0answers
12 views

Function returning same value for all posts

I have this function to get the size in KB from a file. It works like a charm as long as it's on a single post. However, if I do a query, all posts take the value from the first post. Thus, if the ...
0
votes
0answers
4 views

How to hide default sidebar widgets?

I'd like to hide/not display all default widgets(Search, Recent Posts, Recent Comments, Archive, Categories and Meta) which are inserted into custom sidebar when the theme is installed. (Removing them ...
0
votes
1answer
7 views

How to convert the file path to a URL of the same file?

How do I convert file system path to URL? I have found some general PHP solutions that can be error prone. Is there some WordPress specific way to do it?
0
votes
0answers
5 views

How to remove query string from static resources

Any expert who knows about Remove query strings from static resources plugin. its not working. also i have try to write this code in function.php file of theme function _remove_script_version( $src ){ ...
1
vote
0answers
6 views

Adding extra pages to plugin that shouldn't appear in the sidebar

I'm trying to add extra pages to my wordpress plugin and link to these pages through links, form forwards etc. I don't want them to appear in the menu on the left - so add_submenu_page isn't the ...
0
votes
0answers
8 views

wordpress malware help? [on hold]

i keep getting this malware code in my wordpress , even if i do a clean install of my wordpress a few hours later its back again on wordpress js files and plugins :/ i cant remove it... i keep ...
0
votes
0answers
9 views

Dynamic Custom Fields

I am working on a custom invoicing system for a client. I am looking for the best way to implement adding products dynamically to the invoice in the wordpress admin. There are hundreds of products ...
0
votes
0answers
5 views

Make administrator role view only their own pod entries

Is there a way to make the admins see only their pod entries in the back-end "View All entries" ? Normal users see only their entries but admins see everything no matter how i configure the roles….
0
votes
0answers
4 views

Divi social icons how do i change color top-header using extra theme

I am trying to change the style of the social icons in my header. I am using elegant themes divi them lattest version but some reason I cant seem to figure out how to change the color to purple I ...
1
vote
1answer
15 views

Is it possible to prevent users from uploading small images?

Is there a way to prompt an editor whenever they try to upload an image smaller than 350px width? Essentially rejecting any image uploads that are smaller than 350px width? Thanks
0
votes
2answers
18 views

Display custom post using ID

In my theme, I have a custom post type called sliders. Here the user is allowed to upload images in a meta-box. So, the images are saved as meta data in wp_post_meta table. Now what I want to do is, ...
-3
votes
0answers
10 views

Social Share Icons in Website

Is there any plugin or way available to show custom social share icons to put in our theme as per our requirement. The way to get individual share link( for e.g the link for whatsapp, the link for ...
0
votes
2answers
14 views

PHP: Showing currency sign if input is a number

I have a field that lets me enter a price for a product in 'edit post'. Here's how it's currently called: <span class="price"> "$" <?php echo get_post_meta(get_the_ID(),'si-price',true); ...
0
votes
1answer
27 views

Issues trying to get an element by id

I'm trying to incorporate javascripts in my wordpress posts. I've previously done it by just adding it to the post in the wordpress editor, but I've heard the better way is to add it to a js directory ...
0
votes
0answers
16 views

Why isn't “background-image: url”working with Bootstrap carousel on WP?

When I made a Bootstrap carousel in plain HTML it was working just fine, but when I pasted the code into Wordpress the carousel is completely white. It's not a problem with the path because it will ...
-5
votes
0answers
13 views

RSS: Only show full content after clicking link instead of going to the original website

I am working on an RSS Reader site. What I want is to display the RSS post titles and dates on one page (no problem with that so far ), and when clicking a title the user should go to a page where ...
0
votes
0answers
6 views

change product image url in widgets & shop page

I am trying to setup CDN on woocommerce theme. Here's what I have added to the functions.php add_filter( 'woocommerce_single_product_image_html', 'replace_content' ); add_filter( ...
0
votes
1answer
6 views

Loading Bootstrap with wp_enqueue_style and wp_enqueue_script

I'm looking to load Bootstrap on a theme I'm working on though can't figure out how to add the JS file that comes with Bootstrap. I already created a function that loads some of my custom styles and ...
1
vote
1answer
20 views

IF Statement in Wordpress

I can't seem how to correctly use the php if statemnt in my add filter function below. This code works perfectly if all (3) of my $_POST inputs have values however it has a fatal error if any are ...
-1
votes
1answer
20 views

How to make CPT posts to be randomly ordered every single time they are loaded?

I have a website where I have a CPT called ADS. I want them to be displayed at random order for every visitor rather than any specific order based on "date added" or anything else, and therefore ...
0
votes
0answers
10 views

Entire site breaks when bug in .php because of multiple get_template_part in functions

I bought a wordpress template and I'm modifying it to suit my needs, but I have a problem. Whenever I left a bug in one .php, the entire site (including the homepage) breaks. I see that the way the ...
0
votes
0answers
5 views

Query Code Making Menu Disappear

I'm trying to display only certain tags on my site, but when I use the code my menu disapears. Heres what I have: $query->set('tag', 'break','crunch'); return $query; I have this placed in the ...
0
votes
0answers
8 views

A form that can save/edit after first input

I need a form on my WordPress website that users can input information into through dropdown fields.But i just dont want the information to go away after sending.I need them to still be able to come ...
-2
votes
0answers
12 views

Looking for a WP photo gallery plugin [on hold]

I'm hoping someone can help me with this. I have looked all over and can't seem to find what I need. I'am looking for an Gallery plugin, with these requirements: Can output latest created album / ...
0
votes
2answers
19 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
5 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
13 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 ...
1
vote
0answers
6 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
7 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
7 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
14 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
8 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
13 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
8 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
11 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
31 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
8 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
16 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
12 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 ...

15 30 50 per page