0
votes
0answers
2 views

How does Cache Timeout in WP Super Cache work?

I've set "Cache Timeout" in WP Super Cache plugin to 60 seconds. Also set "Garbage Collection" to 90 seconds. I was expecting cached pages to be cleared at least each 90 seconds, but the cached pages ...
0
votes
1answer
4 views

Using a GIF as a featured image

I'm looking for a developer who can assist me by creating a workaround to allow me to use animated GIFs as the featured images on my website. Unfortunately I cannot default to first image. If ...
0
votes
0answers
4 views

How to use shortcode in js url

Here's the code I'm trying to use. <input type="button" class="next-step" value="Adopt Now" onClick="parent.location='http://example.com/adoption-application/?Name=[Title]'" /> The shortcode ...
0
votes
1answer
7 views

How to remove this content and fill the gap

I want to remove the content being shown in red area and Want to fit the gap between that light blue to black footer. This thing is showing in my home page. Pls help!
0
votes
1answer
8 views

How to let users clear their posts cache with WP Super Cache?

Right now with WP Super Cache, when an admin updates a post, the cache is cleared and new cached version is generated. How do I let users do the same with own posts? (When they update their posts the ...
0
votes
1answer
7 views

Retrieve posts using thumbnail id as meta key

I am working on my website and using these args in wp_query but I also want to show only those posts which have thumbnails in it... here are the args I am working on: $args1 = array( ...
-1
votes
0answers
7 views

How to add a CPT as submenu under another CPT?

I need someone to fix this problem. I have two CPT: 1) register_post_type( 'movies',$args); 2) register_post_type( 'english',$args); How can I use second one as submenu under first one?Could you ...
0
votes
0answers
3 views

Multiple rows of footer widget areas

I have a function on my functions.php that adds a bootstrap col class to the footer sidebars depending on the number of active sidebars. What I intend to achieve with this is having footer widgets ...
0
votes
0answers
3 views

How do I get order lists with paragraphs below each item?

I'm posting a guide on my wordpress site, but finding that the editor doesn't play nice with what I'm trying to achieve. I want to layout my guide as follows: 1. Lorem ipsum dolor sit amet ...
-2
votes
0answers
10 views

My website ShopOfCoupons.com Not Opening [on hold]

My website Shopofcoupons.com is not working instead a plugin error occurs. My admin and website both are not opening. Whats the reason
0
votes
0answers
4 views

Subpage for custom post type not beeing loaded

A week ago I started working with wordpress. My project is to expand a friends website with a section where she can add offers (e.g. guided hiking tours) in a chronical way. Those offers should have ...
0
votes
0answers
7 views

Redesigning the add new post form

This is a learning exercise. I'm trying to redesign the form that is rendered when a user tries to add a new post via the administration panel. So far i've tried messing around in ...
0
votes
0answers
4 views

price of woocommerce products with zeros in cents

When I need to show price of woocommerce products I do like: $woocommerce_price_format= get_woocommerce_price_format(); $currency_symbol= get_woocommerce_currency_symbol( ...
0
votes
0answers
11 views

Localize strings from db

I'm using this method to translate strings in my template. The question is, what if some strings are dynamically loaded from the db? How can i translate them? I've been googling for days and even ...
0
votes
0answers
17 views

Show custom post type inside a custom post type

I am kind'a new to wordpress and i need some help. I am building a website that contains articles. in each article page i want to show the writer details(image name and short description). I have ...
0
votes
1answer
15 views

Rewrite URL Parameter And Force 'Pretty' Permalink

I’m trying to pass a variable via a URL parameter and rewrite + force 'redirect' it. In other words, I have: /dir1/dir2/?my_var=123 and I want: /dir1/dir2/123/ Through the following code in ...
0
votes
1answer
17 views

Enqueue style for Password Reset page

I've enqueued a style for my WordPress login page like so: function login_stylesheet() { wp_enqueue_style( 'custom-login', plugins_url( 'style-login.css', __FILE__ ) ); } add_action( ...
-3
votes
0answers
10 views

Displaying dynamic content on product page

How can I add a custom Flash animation on a product page in WooCommerce? The animation should change based on the product displayed. I searched everywhere, but found nothing about this.
0
votes
1answer
24 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 ...
6
votes
3answers
158 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
1answer
10 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
16 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
17 views

Must use 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
17 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
28 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
16 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
20 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
11 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
6 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 ){ ...
3
votes
0answers
8 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 ...
-1
votes
0answers
15 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
11 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
10 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
18 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
20 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, ...
0
votes
2answers
15 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
29 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
17 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
14 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
7 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
31 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
23 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
20 views

Entire site breaks when error in a php file because of multiple get_template_part in functions.php

I bought a WordPress template and I'm modifying it to fulfill my needs, But I have a problem. Whenever I there is an error in one PHP file, the entire site (including the homepage) breaks. I see that ...
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 / ...

15 30 50 per page