Client cant see the Updated dynamic content

Yeah that’s definitely a caching issue. The code you have there should handle it but you can’t really guarantee anything. Do you have a caching plugin installed? If so try disabling that. Also in your wp-config.php file see if you have this define(‘WP_CACHE’, true); if so change it to false. If it isn’t there add … Read more

Good RSS Feed Parser to use on php file?

wp_rss is deprecated and you should use fetch_feed instead which gives you much more control and options over the RSS and what is fetched ex: <?php // Get RSS Feed(s) include_once(ABSPATH . WPINC . ‘/feed.php’); // Get a SimplePie feed object from the specified feed source. $rss = fetch_feed(‘http://example.com/rss/feed/goes/here’); if (!is_wp_error( $rss ) ) : … Read more

How to display results from a data table with an encrypted user id?

The plugin now works as I would like, with a little alteration. Instead of setting submitter_id to a random value, it is now set to the logged in user’s id. This will allow displaying other users’ answers. The + indicates new lines of code in the output_quiz.php file: function wpss_getQuiz($quiz_id){ global $wpdb; + global $current_user; … Read more

Manually Remove and Change WordPress Page/Post Title

Simply filter the_title to replace/append the post title with this post custom meta data. I assume that you already know how to query your post custom meta data, and as such, that querying will be outside the scope of this answer. Let’s assume that you’ve queried the meta data, as $post_author_fname and $post_author_lname, and that … Read more

Query the links Database

WordPress adds prefixes to tables names, which was setup on installation. So by default there is wp_ prefix for tables names. It means that by default table name for links will be wp_links. But you shouldn’t care about standard tables name, because all of them exists as parameters of wpdb class (read Table section), so … Read more

Trying to display terms from custom taxonomy within function

Function get_term_by returns object or array (based on $output arg) on success and false if failed. But you treat it as string and try to concatenate it. So your code should be following: $cat = get_term_by(‘id’, 17, ‘project_cats’); $html_content .= “<h3>” . rgpost(‘input_1’) . “</h3>”; //Title $html_content .= “<p><strong>Category:</strong> ” . rgpost(‘input_5’) . ” | … Read more

How do I add my PHP app to a WordPress page whilst keeping semantic URLs?

Its not good way to edit .htaccess for wordpress url rewriting (only for main urls settings from admin panel) You found your response here : API basic url rewriting or The Rewrite API: Post Types & Taxonomies An example : add_action( ‘init’, ‘rewrite_rule’ ); function rewrite_rule() { global $wp,$wp_rewrite; // Remember to flush the rules … Read more

Setup page template array in a custom post type

//tax_select – this lists all of the categories in a drop-down, we want to change to a checkbox case ‘tax_select’: $terms = get_terms( $field[‘id’], ‘get=all’ ); $selected = wp_get_object_terms( $post->ID, $field[‘id’] ); foreach ( $terms as $term ) { printf( ‘<input type=”checkbox” name=”%s[]” value=”%s” %s/><br />’, $field[‘id’], $term->slug, !empty( $selected ) && !strcmp( $term->slug, $selected[0]->slug … Read more