Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter flippy146

    (@flippy146)

    Ok, so I fixed most buttons, giving each social icon it’s own url parameter. The only two that won’t work along are Facebook and Linkedin.
    Facebook is the most important, but I can’t get it to send out the exact link with the ?pid=0123. And linkedin for some reason won’t listen to the php coded url I ask him to send out, like Ive with the twitter button, a hard-coded link does work but is not what I want.

    Any ideas?

    This is my current social set-up:

    <div class="addthis_toolbox addthis_default_style ">
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=[removedid]";
    fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    <div class="fb-like" data-send="false" data-layout="button_count" data-width="80" data-show-faces="false"></div>
      <a class="addthis_button_tweet" tw:url="<?php echo the_permalink();?>?pid=<?php echo $image->pid;?>" tw:text="<?php echo $image->alttext ?>"></a>
      <a class="addthis_button_pinterest" pi:pinit:description="<?php echo $image->alttext ?>" pi:pinit:url="<?php echo the_permalink();?>?pid=<?php echo $image->pid;?>"></a>
       <a class="addthis_button_google_plusone" g:plusone:size="medium" g:plusone:count="false" g:plusone:href="<?php echo the_permalink();?>?pid=<?php echo $image->pid;?>"></a>
       <a class="addthis_button_linkedin_counter" li:counter="none" li:url="//////"></a><a class="addthis_counter addthis_pill_style"></a>
    </div>

    Thread Starter flippy146

    (@flippy146)

    Oke so I have `// Create a new filtering function that will add our where clause to the query
    function filter_where( $where = ” ) {
    // posts for March 1 to March 15, 2010
    $where .= ” AND post_date >= ‘2010-03-01’ AND post_date < ‘2010-03-16′”;
    return $where;
    }
    add_filter( ‘posts_where’, ‘filter_where’ );

    $query = new WP_Query( $query_string );`

    I am not really an experienced filter user, should I add this function to my functions.php? And then how do I integrate it in my current query_posts?

    Thread Starter flippy146

    (@flippy146)

    Oke added query_posts( 'category_name=blog' );
    Now it’s working.

    <?php query_posts( 'category_name=blog' );
    if (have_posts()) : while (have_posts()) : the_post(); ?>

    Thanks. I think I already know what mistake I made before. =]

    Forum: Fixing WordPress
    In reply to: Can't add plugin
    Thread Starter flippy146

    (@flippy146)

    I tried that but it didn’t work. First time it prompted some code when I tried to install the plugin. So I tried integrating your code in some other ways in the htaccess, that didn’t work out either. And now when I click on ‘add new’-plugin it shows this code:

    get_pagenum(); $wp_list_table->prepare_items(); $total_pages = $wp_list_table->get_pagination_arg( 'total_pages' ); if ( $pagenum > $total_pages && $total_pages > 0 ) { wp_redirect( add_query_arg( 'paged', $total_pages ) ); exit; } $title = __('Install Plugins'); $parent_file = 'plugins.php'; wp_enqueue_style( 'plugin-install' ); wp_enqueue_script( 'plugin-install' ); if ( 'plugin-information' != $tab ) add_thickbox(); $body_id = $tab; do_action('install_plugins_pre_' . $tab); //Used to override the general interface, Eg, install or plugin information. add_contextual_help($current_screen, '
    
    ' . sprintf(__('Plugins hook into WordPress to extend its functionality with custom features. Plugins are developed independently from WordPress core by thousands of developers all over the world. All plugins in the official WordPress.org Plugin Directory are compatible with the WordPress GPL v2 license. You can find new plugins to install by searching or browsing the Directory right here in your own Plugins section.'), 'http://wordpress.org/extend/plugins/') . '
    ' . '
    
    ' . __('If you know what you’re looking for, Search is your best bet. The Search screen has options to search the WordPress.org Plugin Directory for a particular Term, Author, or Tag. You can also search the directory by selecting a popular tags. Tags in larger type mean more plugins have been labeled with that tag.') . '
    ' . '
    
    ' . __('If you just want to get an idea of what’s available, you can browse Featured, Popular, Newest, and Recently Updated plugins by using the links in the upper left of the screen. These sections rotate regularly.') . '
    ' . '
    
    ' . __('If you want to install a plugin that you’ve downloaded elsewhere, click Upload in the upper left. You will be prompted to upload the .zip package, and once uploaded, you can activate the new plugin.') . '
    ' . '
    
    ' . __('For more information:') . '
    ' . '
    
    ' . __('Documentation on Installing Plugins') . '
    ' . '
    
    ' . __('Support Forums') . '
    ' ); include(ABSPATH . 'wp-admin/admin-header.php'); ?>
    views(); ?>
Viewing 4 replies - 1 through 4 (of 4 total)