Posts by mattmatt88

80 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 1+ items on Envato Market
mattmatt88 says

It it understandable what I mean? ^^

80 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 1+ items on Envato Market
mattmatt88 says

Hello,

When a user first logs in, he would need to update his profile to run a code that adds him to the wanted newsletter. Problem: not everyone updates his profile after logging in the first time and so they don’t get the wanted newsletter.

I already have a function to check if it’s the first login. Can I “simulate” that he updates his profile when this function is called?

I’m not so good in php coding, so I wasted hours with this problem. But might be a simple code.

Thank you.

80 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 1+ items on Envato Market
mattmatt88 says

Hello,

Got the following two loop args, which work perfect seperately. Any ideas how I can combine them to one with an OR operator?

$args = array(
            'post_type'        => 'books',        /* CHANGE NEW WEBSITE: post->books + eventuell Sprachenabfrage nötig! */
            'posts_per_page'    => 30,
            'meta_query'        => array(
                'relation' => 'AND',
                array(
                    'key' => 'pricenow',
                    'value' => '2',
                    'compare' => '<'
                ),
            ),
            'tax_query' => array(
                'relation' => 'AND',
                array(
                    'taxonomy' => 'books_category',
                    'field' => 'slug',
                    'terms' => array('bestseller')
                )
            )
        );
        $posts = new WP_Query( $args );
$args = array(
            'post_type'        => 'books',        /* CHANGE NEW WEBSITE: post->books + eventuell Sprachenabfrage nötig! */
            'posts_per_page'    => 30,
            'meta_query'        => array(
                'relation' => 'AND',
                array(
                    'key' => 'pricenow',
                    'value' => '0.01',
                    'compare' => '<'
                ),
            ),
            'tax_query' => array(
                'relation' => 'AND',
                array(
                    'taxonomy' => 'books_category',
                    'field' => 'slug',
                    'terms' => array('thriller')
                )
            )
        );
        $posts = new WP_Query( $args );
80 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 1+ items on Envato Market
mattmatt88 says

Yes, but looks like he doesn’t respond to every post. So maybe there is a php code that I can use?

80 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 1+ items on Envato Market
mattmatt88 says

Is it understandable what I need?

80 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 1+ items on Envato Market
mattmatt88 says

Hello,

You don’t need to use the plugins to be able to answer my question.

I’ve got a plugin (wp members) where the user can change his profile. If he checks/unchecks some checkboxes in the profile options, the new information isn’t yet send to another plugin (autochimp). Therefore, the user would have to click on “update” again or I need to click on “update profile” for the user in the backend.

So is it possible to either:

- Send the Update Profile Form twice every time a user changes his profile

or

- Update his profile in the backend after a user changes his profile.

Hope you can give a PHP hint.

80 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 1+ items on Envato Market
mattmatt88 says

Hello,

I’m using WPML with two languages. In my theme I have a folder ”/wishlist/” with two php documents containing ”__” and “_e” functions. I’ve also created a PO and MO file out of these php documents called “en_US” and “de_DE”.

But always the original language is displayed.

How can I connect this PO/MO file with the wordpress installation?

Thank you.

80 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 1+ items on Envato Market
mattmatt88 says

It worked with that code. Is that ok according to performance etc.?

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST}  ^www.mypage.us [nocase]
RewriteRule ^(.*)         http://mypage.us/$1 [last,redirect=301]
RewriteCond %{HTTP_HOST}  ^www.mypage.co.uk [nocase]
RewriteRule ^(.*)         http://mypage.co.uk/$1 [last,redirect=301]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
80 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 1+ items on Envato Market
mattmatt88 says

no one ever had a page where he uses one domain per language?

80 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 1+ items on Envato Market
mattmatt88 says

still have no solution.

I use WPML. It works with the main domain to automatically remove the www. But the www isn’t removed for domain for the second language.

by
by
by
by
by
by