Google Translate on WordPress(.com)

Since scripts are not allowed on WordPress(.com) blogs, I was wondering whether there is a way to get the following Google Translate code to work on a WordPress (.com) blog via the Text widget? Thanks in advance. <div id="google_translate_element"></div><script> function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: 'en' }, 'google_translate_element'); } </script><script src="http://translate.google.com/translate_a/elemen

WordPress rewrite URL to access plugin page

Hi i am trying to access my plugin via a custome URL but i am unable to get the plugin to redirect, it just comes up 404 page not found, whereas what i want is page.php to be called instead. My plugin code is below (activate and deactivate functions of the plugin): register_activation_hook(__FILE__,'activate'); register_deactivation_hook(__FILE__,'deactivate'); function setRewriteRules() { add_rewrite_rule( 'plugin-url/$', '/wp-content/plugins/my-plugin/page.php', 'top' ); } function acti

Wordpress - Redirect in an Admin Page

I have a menu item I created called 'View Certificates' and a sub menu item called 'Add Certificates'. The Add Certificates page is just a file upload page. After the file uploads successfully, I want it to redirect back to the 'View Certificates' page. All my code is in the functions.php file. How do I go about doing this redirect?

WordPress Custom Permalink Structure for: Pages, Posts and Custom Post Types

I'm trying to set a custom permalink structure for a custom post type based on a custom parent/child taxonomy. I've managed to achieve the thing but I broke the permalink structure for pages and posts. I've accomplisged the following: mysite.com/taxonomy_parent/taxonomy_child/postname In other words, I've remove the taxonomy slug and the URL show the correct hierarchical order. First, I set the 'rewrite' arg when registering the custom taxonomy and the custom post-type: for the custom taxono

Intermittent 404 and 500 errors with redirect permanent to Wordpress site

I have been bequeathed a Wordpress site that has been created in a sub-directory of our current main web site (standard HTML). So I have: http://www.company.com/ as main site and http://www.company.com/newsite/ as the wordpress site. The underlying directory structures are: /company-com/ and /company-com/newsite/ This is (needless to say) somewhat inconvenient. However it would be a problem for various reasons to change this structure so I would like to stick with if at all possible.

Wordpress Customize the_content

I am quite new to Wordpress and try to customize my Wordpress theme. My posts are always different. But basically there is a title, a text and a NivoSlider/Image/Vimeo Video. If I use the basic the_content function it displays the post like that: <h2>Title of the Post</h2> <p><div class="slider-wrapper">Slider</div>Text</p> It always includes the Slider/Image/Video in the Tag. How can I split the_content object? I would like to have my posts display lik

Static PHP application directory on a wordpress site

I'm having trouble setting up a directory with php files on a wordpress site. I understand how to use templates to include a custom php file, but what I'm trying to do is access a php file as if wordpress was not installed. Right now when I create a new directory(dir1) and put an index.php file in that folder, then try to view by going to www.test.com/dir1 it shows a bulleted list with links to header, background, and updates with a text input for searching the website at the bottom. I'm not

Wordpress wp-cli update plugin update deployment process

Extremely happy with wp-cli so far. One issue: I can't seem to update plugins locally, commit the changes to the remote repo and see the plugin status as updated on the remote server. This deployment process seems correct to me (git learner), but it seems to me now that updating the plugins via wp-cli or the GUI makes database changes also? This would explain why deploying changed files does not change the status of the plugin on the remote server. Is there a process in wp-cli that I am missing

Wordpress - Allow showing same posts multiple times in one loop

I got an array of Post Ids $ids = array(1277,6098,6709, 6098); I want to loop throw these specific posts with: $args = array( 'orderby' => 'post__in', 'post__in' => $ids); get_posts($args); $custom_posts = get_posts($args); foreach( $custom_posts as $post ) : setup_postdata($post); the_title(); ... endforeach; But wordpress automatically excludes the repeated Id (6098). How can I avoid this? I tryed to create my own function. But unfortunately it doe

Wordpress mod rewrite exploding %{HTTP_HOST}

I have a situation I've not come across before that calls for some interesting mod_rewrite rules and I cant find any examples of someone trying to achieve the same thing in a similar configuration. Currently I have two domain names which are configured to share the same document root, in said document root is a dynamic php application which, based on the incoming hostname, displays content specific to the that domain. The domains for example purposes are: www.example1.com and www.example2.

Wordpress on AWS EC2 - broken after assigning elastic IP

So, I got Wordpress installed and working just fine. I can access the site and the wp-admin via the public DNS that I get from the instance. However, once I create an elastic IP and associate it with the instance, I can no longer access wp-admin and the home page style sheets and JavaScript files are not loaded. I am attempting to access the site and the wp-admin using the new public IP from the elastic IP. Same thing is true if I try to use the public DNS from either the elastic IP or the E

Who should be the owner of wordpress's file and directories?

I am using wordpress for developing a site. Many of the files and directories in /var/www/wordpress directory are having nobody:nogroup as owner including wordpress directory itself. My question is whether it is safe to have this ownership or should i change it to www-data:www-data. I am having only two users one is admin and one who will work on the site(for uploading some documents through a interface developed by admin using php on wordpress pages). Rest use it for viewing purpose and downloa

Wordpress Redirection 301 from /%postname%.html to default

I want to change the permalinks from /%postname%.html to defaulte .for example ( http://www.morzak.net/?p=123) I know how to do that from Worpdress Admin panel. But I got more than 30000 post, so I want to know please if is any chance to make a redirection from .htacess for old my posts with /%postname%.html redirect to defaulte .for example (http://www.morzak.net/?p=123)

SoundCloud VIsual Player embedded code for Wordpress does not match preview

About a week ago our visual players on our website all changed and the format has a distorted picture across the entire visual player. I went to the soundcloud site and clicked the option to have the picture show in the left side... the preview is correct however when I transfer the Wordpress code into our site it is the same distorted view. If I copy in the iframe short code it works properly. Which I can do going forward if necessary however for the hundreds we already have coded into our si

Wordpress Infinite Ajax Scroll: Difficulties With History

I just purchase Infinite Ajax Scroll after having difficulties trying to implement replaceState() with infinite scroll. I have managed to get everything set up to work correctly with the following code: function infiniteScroll() { // Init infinite scroll var ias = $.ias({ container: '#masonry-filter', item: '.post', pagination: '.nav-links', next: '.nav-previous a' }); // Run isotope on additional load ias.on('render', function(newEleme

Wordpress Syncing checkboxes between buddypress and mailchimp using autochimp

When signing up for my BuddyPress website a user gets the option to register for 3 separate newsletters through 3 checkboxes. They are saved into their custom profile fields. I tried to sync those with MailChimp, using AutoChimp, but I can't add a checkbox field to my List (List --> Settings --> List fields and |MERGE| tags). I tried syncing it to a text field, but that didn't work. Anybody got an idea how to sync that information?

Wordpress file upload field on checkout page woocommerce

I want to add a file upload field on checkout page in woocommerce.I have added it but when I click on "Place order" button and try to check post values,$_FILES array is empty while other fields on the same page ,same form are coming with respective values.I am using response using print_r().This issue also had been asked in below thread and explained well.I have exactly same problem as in this thread. How to upload a image in woocommerce checkout page and link it to the order Any help highly a

Wordpress WooCommerce: How to display fields from the "Product Add-ons" extension?

I'm using the [Product Add-ons][1] extension for WooCommerce, which allows custom fields for products. This automatically displays on the single product template. By some trial and error with the single product template, it appears to hook in somewhere in woocommerce_single_product_summary (single_meta?). I need to get this same set of form fields to display on the archive-product template (the list of products). In my case, this is a field for a card request and one for delivery date. Both

Showing Notice when creating wordpress custom taxonomy

I am trying to create custom taxonomy for my custom post. But when i am trying to add new category, a notice like "notice trying to get property of non-object in...." is showing. Here is the code for custom post function newsbox_post() { register_post_type( 'newsbox-post', array( 'label' => __( 'Newsbox Post', 'text_domain' ), 'labels' => array( 'name' => __( 'Newsbox Posts' ), 'singular_name' => __( 'Newsbox Post' ),

Wordpress Ngx_pagespeed is loaded, but do nothing on HTTPS website. Why is that?

The module ngx_pagespeed(Nginx) works very well for HTTP. However, I cannot get it working with HTTPS. My whole website is using HTTPS and ngx_pagespeed seems to have none of their filters working. The module itself is loaded, but do nothing. I'm using WordPress for the website with the latest ngx_pagespeed module on CentOS 7. Here my nginx.conf user nginx nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /run/nginx.pid; events { use epoll; worker_conn

wordpress comment form in blog page

I am trying to develop a wordpress site , My blog page shows all the news from my site. Can I fix recent comments with comment form in all posts displaying in blog page. If I just click on the read more button, content with recent comments and comment form want to show. is it possible?? I am trying with <?php comment_form(); ?> in my template, but it shows only comment form, if we are write any comment means it redirect to single news page.

Menu gets wrap in Div - wordpress

Working on Wordpress menu: with Bootstrap My ul li gets wrap within Ul and creates Div. Screenshot attached: It seems it automatically adds classes to menu li and and prevents the bootstrap styles and classes My wp menu function : /** * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link. */ function register_my_menus() { register_nav_menus( array( 'header-menu' => __( 'Header Menu' ), 'extra-menu' => __( 'Extra Menu' ) ) ); } add_action( '

Wordpress Removing category base form links messes up the parent-child behavior

Cross posted from here for better visibility. I am using the 'standard' trick for category removal in wordpress. In my permalinks I set the permalinks structure to /%category%/%postname%/ And my category base to . Which worked fine, until the client said he wants parent categories to appear in the header of the article, and the child categories to show in the footer of the articles on the home/index pages... I've set it up, but the problem is that my child categories links are now: ht

Wordpress contact form with registration details in csv format

On my wordpress site, I would like to have register form with few text fields, I know we can do this with contact form available on wordpress admin panel that simply emails the participant or the contact details to the given email id, but is there any way we can ahve .csv file generated of the all the details entered on the contact form, and I can download it anytime from the admin panel ?

Simple CRM wordpress plugins

Am new to WordPress, and i want to create a system using this CMS, nothing complicated i guess, but i have spent to much time looking for plugins that can help me, and there is a lot that its confusing me. well, the idea is to give a number of users the ability to fill a form, That will be displayed, edited,and then saved by an other member (basically an other team). also the second team can get any form by (Name, Date/time of creation, or user (who created the form)...). i Hope that someone ca

Wordpress My website has the Open Graph meta data correctly. Why doesn´t Linkedin show the image?

For example, the URL of a page has the og: <meta property="og:image" content="https://url.com/wp-content/uploads/2016/09/image.png"> If I write that URL in LinkedIn that previous image is shown, but if I write the URL https://url.com/suburl no image is shown, and the og is the same: <meta property="og:image" content="https://url.com/wp-content/uploads/2016/09/image.png"> Why does LinkedIn do that? In fact both pages have the og meta data. What am I doing wrong?

Wordpress Reset total_sales of product in woocommerce?

By default it will display total sales of product full time, now I want to it reset total sales of product when order status is Processing or Complete ( in WooCommerce => Orders ). it still does not work :'( add_action( 'woocommerce_single_product_summary', 'order_is_status', 10, 1); function order_is_status($order_id) { global $product; $order = new WC_Order($order_id); $units_sold = get_post_meta( $product->id, 'total_sales', true ); if ( 'completed' == $order->status )

How to connect ads titles from Google/Facebook to my wordpress website page?

I ran into a problem. I do have ... lets say 40 ads on facebook and google adwords to promote my business in my country. My website is running on wordpress. Is there any way to connect my ads with my website, so website page will show title of advertisement, which customer clicked? Lets say I do have 2 different titles, I love cats, I love dogs. If customer click on title I love cats, on website page should be the same title he clicked via ad. Same applies for I love dogs title. Is anything like

Delete qtranslateX plugin and code in wordpress

My website using q-translate plugin for wordpress multiple language website https://savvycomsoftware.com/ for (en / vi / ja) but now. They remove vi / ja and keep default language for this website. And SEO staffs want me to remove the code also this plugin from this website to improve seo than bad seo. How do i do?

Shortcode not working on Wordpress under Paragraph tag

I am using Shortcode for my wordpress website. That code is working fine. But does not work on p tag. E.g [box type=”shadow”]<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>[/box] Here is my code function boxShow($atts, $content = null ){ //default values $option = shortcode_atts( array( 'type' => '', ), $atts ); ob_start(); $class = $option[ 'type' ] ? str_replace( '"', '', $option[ 'type' ] ) : 'normal'; /

Wordpress woocommerce BACS add custom field

I need to put custom BACS field in the Thank you page and also for the emails. My country needs 'variable symbol' for the BACS method, which would be the order number. I dont want to change core files. This is what i do: add_filter( 'woocommerce_bacs_account_fields', 'custom_bacs_account_field', 10, 2); function custom_bacs_account_field( $account_fields, $order_id ) { $account_fields['variable_symbol'] = array( 'label' => 'Variabilní symbol', 'value' => $order_id

Occurring WordPress Multisite return 302 redirect status code

After Setup WordPress multisite (network setup), this is what happened. wp-config.php /* Multisite */ define( ‘WP_ALLOW_MULTISITE’, true ); define(‘MULTISITE’, true); define(‘SUBDOMAIN_INSTALL’, false); define(‘DOMAIN_CURRENT_SITE’, ‘www.example.com’); define(‘PATH_CURRENT_SITE’, ‘/’); define(‘SITE_ID_CURRENT_SITE’, 1); define(‘BLOG_ID_CURRENT_SITE’, 1); .htaccess RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/

Wordpress Polylang Strings searchable?

i'm using Polylang with PODS and different custom post types. The Wordpress search is working fine for all of the content inside the posts but what about the strings i have to replace in the template? Are they not searchable at all? Is there any other way to make the polylang strings in templates searchable for the Wordpress search? The strings in the templates are printed with: <?php echo pll_e('headlineX'); ?> The search result however doesn't show anything i put in the string table

Wordpress rest api cat 1 and cat 2

I am using Wordpress rest api to query category id’s like so: http://localhost:8888/wp-json/wp/v2/posts?type=press_release&per_page=4&categories=15,25 Which returns results in either cat 15 OR 25 I need to only return results if they are in cat 15 AND 25. Done loads of searching and cannot find a solution to this. Anyone know if this can be done and how? Thank, Jamie

wordpress returning 404 in permalink post name on plesk onyx 17.8

Im having an issue with wordpress (im kinda new) i have a domain in godaddy and it has plesk onyx 17.8, it does not ahve apache it has IIS and i made a wordpress blog example on my localhost and uploaded to my domain to test it, when i use the permalinks option of post name, instead of plain, all other pages besides the home return 404, but plain works with no problem. i try changing th .htaccess file as i have seen in many places with no luck. And as i have said before plesk 17.8 does not run

Wordpress button customization

How can I edit this button, so that the text is shorter in the mobile version? <button class="btn btn-primary standard-button" type="button"> <span class="screen-reader-text"> Ribbon button label:Simply dummy text of the printing and typesetting </span> simply dummy text of the printing and typesetting </button>

I want to display the category name and all the related posts in Wordpress

I'm using the plugin CPT UI. I want to display the category name and under that the post that belong with that category. I want it to look like this. enter image description here I would like to repeat this for every category so whenever a new category is added it will show the category name and the related post on the page. I have tried this so far <div id="row-portfolio" class="row"> <div class="col-md-12"> <h2>Achtertuin</h2> </div> </div>

Restrict pdf. upload wordpress

I have a marketplace built with Dokan in Wordpress and vendors have the ability to upload images on their end. However, there is no format restriction and other the normal image formats, they can also upload images in pdf. Does anyone know how to restrict pdf. uploads?

Wordpress Ultimate Member Profile Edit not working for other user roles

I am not able to enable Profile View / edit for users other than administrator. Newly registered members only able to see fields entered during registration. They are not able to edit / fill fields in profile form. I have tried defining role for the profile form as well as not assigning any role at all as well. But nothing is working. However, if I change the user role to administrator, the profile view and edit works as it should.

Wordpress Failed to load resource: the server responded with a status of 403 ()

I have a WordPress website in subfolder www.sites.com/blog I have added my custom folder "folder1" in a directory www.sites.com/blog/folder1 and inside folder1, I have several subfolders and .html page. If I click the link www.sites.com/blog/folder1/webpage.html. It opens the right page but If I select webpage.html and try to run www.sites.com/blog/folder1 shows a server error of 403(). It is so important for me to redirect folder1 to a specific page. Can someone help me, please? I hav

Wordpress Essential Addons for Elementor not displaying styles

I’m having problems with the plugin in one of the webs where I use it. The EA Elements are displayed but without style. Could it be a problem with the SSL? Here is an example, where the team members block is not styled: https://www.ub.edu/comitedeseguretatisalut/composicio-cssub/ I read some related problems and tried some ideas but nothing worked. I deleted and reinstalled the plugin, I gave 777 permissions to the folder plugin, I deleted the cache… but nothing seems to work. Any idea or link t

  1    2   3   4   5   6  ... 下一页 最后一页 共 217 页