Forum Replies Created

Viewing 15 replies - 121 through 135 (of 140 total)
  • Thread Starter joloshop

    (@joloshop)

    still totally lost an confused, really need this to get going

    can i use switch_to_blog in a plugin as well and if so how

    okay i got it partly working i also can pull all posts with

    $wpdb->posts = $wpdb->base_prefix.”posts”;

    however this also pulls all pages etc. I only need to pull the post_type “coupon” how do i accomplish that???

    Forum: Plugins
    In reply to: [Broadcast] Fatal ERROR
    Thread Starter joloshop

    (@joloshop)

    just checked and yes i do have 5.4.9

    still getting Parse error: syntax error, unexpected T_STRING in /ThreeWP_Broadcast_WPML.php on line 12

    Thread Starter joloshop

    (@joloshop)

    i tried switch blog but with no result, where do i put this .

    the first blog id is 1 and the other 4 but i could not get the blog 4 to show anything from blog 1 explanation to this is really hard to find, also english is not my first language….

    Thread Starter joloshop

    (@joloshop)

    well thanks but it is not so easy, the taxonomy is created by a theme and now i would like to get part of it displayed on another blog with the same theme but a modified design…
    I am really new with multisite and totally lost right now…

    Thread Starter joloshop

    (@joloshop)

    Dear Mika,

    thanks for you suggestion, however how do i accomplish that?

    I am new with multisite…..

    Thread Starter joloshop

    (@joloshop)

    okay it is working partly
    however there is one database entry named wp_3_clpr_storesmeta and it has to overite wp_3_4_clpr_storesmeta unfortunately if i use

    add_action(‘init’, ‘central_taxonomies’);
    add_action(‘switch_blog’, ‘central_taxonomies’);

    function central_taxonomies () {
    global $wpdb;

    $wpdb->clpr_storesmeta = $wpdb->base_prefix.”clpr_storesmeta”;
    }
    it does not help at all

    it worked with othe database tables like

    add_action(‘init’, ‘central_taxonomies’);
    add_action(‘switch_blog’, ‘central_taxonomies’);

    function central_taxonomies () {
    global $wpdb;
    $wpdb->terms = $wpdb->base_prefix.”terms”;
    $wpdb->posts = $wpdb->base_prefix.”posts”;
    $wpdb->term_relationships = $wpdb->base_prefix.”term_relationships”;
    $wpdb->postmeta = $wpdb->base_prefix.”postmeta”;
    $wpdb->term_taxonomy = $wpdb->base_prefix.”term_taxonomy”;
    }

    need help ??

    Thread Starter joloshop

    (@joloshop)

    okay found part of a solution

    add_action(‘init’, ‘central_taxonomies’);
    add_action(‘switch_blog’, ‘central_taxonomies’);

    function central_taxonomies () {
    global $wpdb;
    $wpdb->terms = $wpdb->base_prefix.”terms”;
    $wpdb->posts = $wpdb->base_prefix.”posts”;
    $wpdb->term_relationships = $wpdb->base_prefix.”term_relationships”;
    $wpdb->postmeta = $wpdb->base_prefix.”postmeta”;
    $wpdb->term_taxonomy = $wpdb->base_prefix.”term_taxonomy”;
    }

    however there is one database entry named wp_3_clpr_storesmeta and it has to overite wp_3_4_clpr_storesmeta unfortunately if i use

    $wpdb->clpr_storesmeta = $wpdb->base_prefix.”clpr_storesmeta”;

    it does not help at all, any body any solution?

    hi i tryed everything it is not working at all, need HELP

    Thread Starter joloshop

    (@joloshop)

    Do you think there is another way to integrate the rating. Within my store sides like example. https://gutscheincloud.info/shops/harlem
    The taxonomy calls all coupon from this store. However if I add <?php if(function_exists(‘the_ratings’)) { the_ratings(); } ?> it shows the stars for the first or last coupon (depends of the position of the code) but i need a generall Rating for the store.
    I call the store infos with:

    <?php // grab the store meta data
    						$term = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy'));
    						$stores_url = esc_url(get_metadata(APP_TAX_STORE, $term->term_id, 'clpr_store_url', true));
    						$dest_url = esc_url(get_metadata(APP_TAX_STORE, $term->term_id, 'clpr_store_aff_url', true));
    
    						// if there's a store aff link, then cloak it. else use store url
    						if ($dest_url)
    							$url_out = esc_url(home_url(CLPR_STORE_REDIRECT_BASE_URL . $term->slug));
    						else
    							$url_out = $stores_url;
    					?>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Really need this and I am stuck ??

    Thread Starter joloshop

    (@joloshop)

    well that is the problem the content are the coupon but they listed with in a store its calles with <?php echo $term->name; ?> and i need to get rating for these term! Any idees?

    I am looking for on as well for my taxonomy (@ wpwebshop wich other plugin do you mean i can not find one for my taxonomy ?? )

    Thread Starter joloshop

    (@joloshop)

    Yes it shows but than the rating is always for the last coupon of this store and not for the store itself ?? So if the coupon is not valid anymore and removed the store has no rating. I need the rating for the store not the coupon!

    Forum: Plugins
    In reply to: [MiniMU] rewrite problem
    Thread Starter joloshop

    (@joloshop)

    there was a problem with a new domain i added, htaccess was giving problems but found the right rule:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

    and stupid me forgot to asign categories ??

    Thread Starter joloshop

    (@joloshop)

    thanks a lot, to bad would be great if it would work there to…..

Viewing 15 replies - 121 through 135 (of 140 total)