Twitter feed is showing blank in WP site [closed]

It is very likely because you are using the old Twitter API, for example: <script type=”text/javascript” src=”http://twitter.com/statuses/user_timeline/USERNAME.json?callback=twitterCallback2&amp;count=4″> You will need to update your code to the new API: http://api.twitter.com/1/statuses/user_timeline.json?screen_name=USERNAME&include_rts=true&count=4&callback=twitterCallback2 This requires that you edit the code of the theme. Many themes suffered this issue for a few months ago when Twitter made their changes.

WordPress theme & site not loading after moving files

If you cannot login, use FTP or the file manager to edit wp-config.php and define WP_HOME and WP_SITEURL,. define( ‘WP_SITEURL’, ‘http://www.security-shell.com ‘); define( ‘WP_HOME’, ‘http://www.security-shell.com ‘ ); When you moved files to that subfolder, you probably copied and edited the main index.php file. Make sure that that process gets reversed. That should get things working … Read more

post meta value as shortcode parameter

// hijack the download shortcode add_shortcode( ‘dlm_gf_form’, array( $this, ‘shortcode_dlm_gf_form’ ) ); This line just adds a shortcode from a class. I checked this plugin’s class and they didn’t provide any actions or filter. You can try to modify original code of this plugin for your purposes only. I don’t see any other solution. I … Read more

how to add display_name from the users table to this query

You should be able to do something like this, by adding in another join, and selecting the display_name column from that joined table: SELECT a.post_title, b.meta_key, b.meta_value as level, c.meta_value as intro, u.display_name FROM wp_posts a LEFT JOIN wp_postmeta b ON a.ID = b.post_id LEFT JOIN wp_postmeta c ON a.ID = c.post_id LEFT JOIN wp_users … Read more

How to Remove a Filter from the Admin List Table?

I can see that it’s implemented inside the class WC_Admin_List_Table_Orders which extends WC_Admin_List_Table. Yes, that’s correct. And the orders list table is setup via WC_Admin_Post_Types::setup_screen() where the method is called via these hooks: (see WC_Admin_Post_Types::__construct()) // Load correct list table classes for current screen. add_action( ‘current_screen’, array( $this, ‘setup_screen’ ) ); add_action( ‘check_ajax_referer’, array( $this, … Read more

Multiple pages on one with different HTML

You could attack the get_pages(); function another way to sort your code better and read it better as well, take a look at this link for more info. <?php $args = array( ‘sort_order’ => ‘ASC’, ‘sort_column’ => ‘post_title’, // sorting by alphabetical order of post title for example ‘hierarchical’ => 1, ‘exclude’ => ”, ‘include’ … Read more

Show only one post for each author ( Page loads too slow )

Edit: I just tested and it works perfectly. You’ll also want to remove pagination from the author template. I haven’t tested it, but have you tried pre_get_posts? function author_filter($query) { if ( !is_admin() && $query->is_main_query() ) { if ($query->is_author()) { $query->set( ‘posts_per_page’, 1 ); } } } add_action(‘pre_get_posts’,’author_filter’);

Where exactly do I write define( ‘WP_DEBUG’, true ) in wp-config file

As said on https://wordpress.org/support/article/debugging-in-wordpress/#example-wp-config-php-for-debugging: (note though, the “blogging” below is now “publishing”) NOTE: You must insert this BEFORE /* That’s all, stop editing! Happy blogging. */ in the wp-config.php file. So just put it there, like this: define( ‘WP_DEBUG’, true ); /* That’s all, stop editing! Happy publishing. */ But actually, depending on the WordPress … Read more