It’s difficult to answer this, but here are some suggestions:
- Make sure your feeds are valid, e.g. here.
- In the case of
is_wp_error( $rss )
giving true, you can check the corresponding error message with$rss->get_error_message()
. - Develop with
WP_DEBUG
activated. - Don’t use
mysql_query()
, it’s deprecated since PHP 5.5. - Use the
$wpdb
object to fetch data from your custom table. - Escape/prepare your SQL if it uses any user input, to avoid SQL injections.
- Indent your code to make it more readable.
- Remove the
wp_reset_query()
line, it’s doing nothing after thereturn
.
Then update your question accordingly with more info. Thanks.
Related Posts:
- Adding regex filter to feedwordpress
- WordPress PHP error getting posts from another wordpress blog
- Disable email notification after change of password
- __(): What if I have to pass in a variable?
- Run WP-CLI using PHP
- How to remove duplicate sub-menu name for top level menu items in a plugin?
- Plugin update error message
- How to build an API as a plugin
- PHP Deprecated: Non-static method should not be called statically
- Update Multiple Post Meta for the Same Post In One call?
- Set a User as Author of all ‘New Posts’ posted
- How do I configure WordPress to talk to a Microsoft SQL Server database?
- Calling function from within functions.php returns unwanted value
- Check if a class exists within a method
- Calling a plugin in theme development
- Unable to activate wordpress importer after installing it
- force customers to add only single item to card per purchase EDD [closed]
- How to get post URL in the_content filter?
- Write to / remove from default .htaccess file from plugin?
- WordPress Ajax Callback
- Why isn’t admin_notices displaying my text? [Simple Plugin, Beginner]
- Programatically download a plugin
- Error shown for Trying to get property ‘roles’ of non-object in WordPress After Content for User Roles
- How to Use Parameters with a Do_Action Function Within PHP Tags
- CSS from textarea in options page to frontend what to do
- How do I pass a post ID to the page URL?
- How would I go about creating a user ranked post popularity page?
- WordPress: PHP code rendering in the wrong place
- New to wordpress, Question about editing PHP
- wp_set_auth_cookie causes 403 error in the wooCommerce checkout
- add image crop function like in wp customizer
- Calculate price and display on woocommerce product single page under price (simple price, variable price) [closed]
- How to edit content before post update
- Bootstrap and Custom CSS in custom plugin are being overwritten by theme
- Customize permalink wordpress category id
- Take input from form and pass it to function using a wp-plugin
- Self-serve ad system like Reddit’s for WordPress? [closed]
- Create a plugin from within WordPress
- Class variables not correct on page
- Load Javascript from Plugin in One Page Only?
- Why is one phpunit test throwing an error on one class when all other classes are similar without error?
- Call plugin with php function
- Setting Up PHP Workflow in WordPress
- How can I exclude a dynamic URL to show a popup created using ‘WordPress Popup’ plugin
- How do I add $_SESSION[”] to my wordpress page?
- output html on post or page from custom plugin [closed]
- How can i add simple code in only in posts by function.php
- Hide DIV if empty – Plugin Gallery
- Profile / benchmark wordpress on apache?
- Way to send multiple values for column to MySQL?
- Retrieve Plugin Settings and insert into XML string
- WordPress Stats Plugin: Display Post Views [closed]
- Pagination not working
- exec-PHP shows output at bottom of page
- Can you echo PHP code from a variable?
- Creating New Dynamic Fields for a Certificate (Number Generation, Code Referencing, and more)
- need to find duplicated meta value in custom filed and view the posts that have the same value
- Can I disable xml-rpc by setting it to false?
- Getting current user data with MySQL statement
- how to validate input field in wordpress generated with wpform plugin
- Conditional delete metadata does not works
- How can I adjust my function so the page editor still loads in the backend?
- Push Contact form 7 variable to front end after submission
- Add a parameter at the end of the url and prettify
- Share my WordPress plugin for updating how?
- Submitting form to PHP
- How can I change page content for good once a button is pressed?
- Google Maps for Woocommerce Checkout
- working code, not working – Plugin Dev
- WordPress plugin blog creation
- Add two row of code to the public static function init of a plugin
- Get and Update Most Meta Value as an array in HTML form
- Custom shortcode being shown in WPBakery backend rather than the block
- Modifying server’s response to API endpoint
- Change Jobs for WordPress templates
- WordPress filter from custom table is not working properly
- user specific private content
- Configuring default woo commerce login with modal popup
- submit form data to wordpress existing database table using my plugin
- register_activation_hook doesn’t fire at all
- Custom SportsPress list
- My ajax request don´t work and return 0
- How can I remove this sidebar from my Search Results page?
- How to allow customers to input a text as a product variation *and* charge per character?
- How to copy data from user profile page (profile.php) to theme customizer
- display user input using ajax in wordpress
- How to make my plugin insert text into a custom div?
- Award points if a specific custom taxonomy is selected – Cubepoints
- Response from Php File to Ajax is not getting sent
- How to disable register and reset the password from WordPress admin panel?
- Submit posts in two different post types with the same form
- How to wrap image logo in Homepage with H1 tag
- wordpress illegal string offset ‘parameter’ error
- Translate text for empty product
- how to show selected options drop down menu values in attributes field in after saving post.php
- Can’t use updated variables in handle function
- Make plugin admin page visible to other roles
- How Create LastMod and Update Date Only on Taxonomy Category and Tags
- Accessing Correct Database to Create REST API Endpoint
- How do I replace a logo image that’s hard-coded into a plugin’s logo.php file?