Title: DuneDx's Replies | WordPress.org

---

# DuneDx

  [  ](https://wordpress.org/support/users/dunedx/)

 *   [Profile](https://wordpress.org/support/users/dunedx/)
 *   [Topics Started](https://wordpress.org/support/users/dunedx/topics/)
 *   [Replies Created](https://wordpress.org/support/users/dunedx/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/dunedx/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/dunedx/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/dunedx/engagements/)
 *   [Favorites](https://wordpress.org/support/users/dunedx/favorites/)

 Search replies:

## Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jetpack - WP Security, Backup, Speed, & Growth] Publicize – point to custom url](https://wordpress.org/support/topic/publicize-point-to-custom-url/)
 *  Thread Starter [DuneDx](https://wordpress.org/support/users/dunedx/)
 * (@dunedx)
 * [10 years ago](https://wordpress.org/support/topic/publicize-point-to-custom-url/#post-7246948)
 * Me again,
 * Jeremy I think it is similar to this request you answered last year : [https://wordpress.org/support/topic/customize-url-in-jetpack-publicize?replies=5](https://wordpress.org/support/topic/customize-url-in-jetpack-publicize?replies=5)
 * basically for any post that is category 12 or 13 I want to point to a specific
   URL
 * Sorry I’m only just learning so this is most definitely wrong but do I add something
   like this to function?
 *     ```
       $status_update = apply_filters( 'publicize_twitter_message', $message, $post, $url );
       if ($post->is_cat('-12 -13')) {
           return
               $url ='http://reading-rampage.co.uk/results';
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jetpack - WP Security, Backup, Speed, & Growth] Publicize – point to custom url](https://wordpress.org/support/topic/publicize-point-to-custom-url/)
 *  Thread Starter [DuneDx](https://wordpress.org/support/users/dunedx/)
 * (@dunedx)
 * [10 years ago](https://wordpress.org/support/topic/publicize-point-to-custom-url/#post-7246947)
 * Hi Jeremy
    Many thanks for replying only just had the chance to try your suggestion.
   This is for the link automatically shared on Twitter and Facebook when I publish
   a post not the sharing buttons on the post.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Javascript cannot see HTML from Wp_query](https://wordpress.org/support/topic/javascript-cannot-see-html-from-wp_query/)
 *  Thread Starter [DuneDx](https://wordpress.org/support/users/dunedx/)
 * (@dunedx)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/javascript-cannot-see-html-from-wp_query/#post-6749402)
 * Awesome!!
 * Thank you so much, this works a treat 😀
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Javascript cannot see HTML from Wp_query](https://wordpress.org/support/topic/javascript-cannot-see-html-from-wp_query/)
 *  Thread Starter [DuneDx](https://wordpress.org/support/users/dunedx/)
 * (@dunedx)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/javascript-cannot-see-html-from-wp_query/#post-6749370)
 * Hi Stephen
 * Many thanks for your reply. It does indeed do that but altering the JS to target
   just “resultsblob” didn’t seem to work either :S
 * The page is here:
    [http://www.reading-rampage.co.uk/results](http://www.reading-rampage.co.uk/results)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [get_post_by_id is not returning any results](https://wordpress.org/support/topic/get_post_by_id-is-not-returning-any-results/)
 *  Thread Starter [DuneDx](https://wordpress.org/support/users/dunedx/)
 * (@dunedx)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/get_post_by_id-is-not-returning-any-results/#post-6517459)
 * Thanks Gaurav Jha, this was really helpful. I’ve now made my first script. It
   only shows the post title at the moment but it works! I’m going to keep working
   on it to bring in the post content etc.
 *     ```
       <?php
           //results feed ordered by date
           $resultsPosts = new WP_Query('cat=12,13&posts_per_page=9');
           if ($resultsPosts->have_posts()) :
          while ($resultsPosts->have_posts()) :
           $resultsPosts->the_post(); ?>
           <div class="resultsblob <?php the_category(); ?>">
           <h2><?php the_title(); ?></h2>
           </div>
           <?php
                   endwhile;
           else:
       endif;
           //This stops wordpress from killing life
           wp_reset_postdata();
           ?>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [get_post_by_id is not returning any results](https://wordpress.org/support/topic/get_post_by_id-is-not-returning-any-results/)
 *  Thread Starter [DuneDx](https://wordpress.org/support/users/dunedx/)
 * (@dunedx)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/get_post_by_id-is-not-returning-any-results/#post-6517453)
 * anyone?

Viewing 6 replies - 1 through 6 (of 6 total)