How to remove the trackback and pingback text on the bottom of my pages?

You can uncheck Settings >> Discussion >> “Allow link notifications from other blogs (pingbacks and trackbacks) to disable disable for future posts. However, to disable for exiting posts you need to run a SQL query on your database to turn the ping_status to OFF: UPDATE wp_posts SET ping_status=”closed” WHERE post_status=”publish” AND post_type=”post”; and UPDATE wp_posts … Read more

one time visit to the page

Although this is not a WP question, it could be done with some PHP/MySQL code. Just the psuedocode: generate a GUID value on each main page visit check if the GUID is already in the GUID database if not, store the GUID in the GUID database if GUID exists in the database, redirect to another … Read more

How to read a page’s “Shortcodes” from the Template File?

Parsing shortcodes from strings WordPress parses and replaces shortcodes from a piece of content via the do_shortcode function. This function, in turn, calls get_shortcode_regex, which returns the regular expression for matching shortcodes in a string. Using this function, we can get a list of all shortcodes ourselves: $pattern = get_shortcode_regex(); preg_match_all( “/$pattern/s”, $content, $matches ); … Read more

List of pages – AJAX load more

Previous Question That answer I’ve linked to shows the steps you’ll need to take. It probably didn’t come up in your searches as you weren’t using the right terms. As you’re a front-end dev, this is how I’d do it based on that persons advice. Don’t load anything in the template. Just have an empty … Read more

appearance of new page

http://www.josephflynn.com/uncategorized/fixer-upper/ Is a Post. http://www.josephflynn.com/donnelys-mug/ Is a Page. Your theme has different templates for each. In your case that’s Twenty Seventeen, the default theme this year. Looking at the templates and styling it would be a bit of a pain to change the post template to match the page, so if you’re happy with how … Read more

Display random page

The first condition you list is easy. You just need the post_parent__in arguments. $args = array( ‘post_type’ => ‘page’, ‘posts_per_page’ => 1, ‘orderby’ => ‘rand’, ‘post_parent__in’ => array(2,169), // replace with your IDs ); $rand = new WP_Query($args); if ($rand->have_posts()) { while ($rand->have_posts()) { $rand->the_post(); the_title(); echo ‘<br>’; } } For the second condition, I … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)