Shortcode produces blank page

I agree that there is a coding error – a blank WP page is almost always caused by a fatal PHP error. You should look at the error.log file in your site’s root folder. That will tell you what/where about the error. If you edit your question to include the error messages found in error.log, … Read more

Front Page not showing on Pages

This is normal. To display your posts, index.php is being used. It is not a regular page created by you. Some call it a virtual page. If you want all posts being displayed on a page created by you, follow these steps: prepare two pages. One for front page, and second for posts ( you … Read more

Using page slug in array

In your tax query, you’re searching for a string instead of a variable, the only time it will match currently is if the term is literally “$page_slug”. You should remove the single quotes around the $page_slug to have it parsed as a variable, so: ‘terms’ => ‘$page_slug’ should be: ‘terms’ => $page_slug,

Slug is redirecting to 404

This was caused by the Redirection plugin. Apparently it is trying to help by setting up redirects when you change the slugs for pages/posts. You have to click on “Groups” at the top of the Redirection plugin settings and then choose “Modified posts” to see the redirection that was automatically created to point from the … Read more

How can I split long posts into pages?

Your theme must have support for the <!–nextpage–> tag. You will need to add <?php wp_link_pages(); ?> in your post loop. http://codex.wordpress.org/Function_Reference/wp_link_pages

Get the Page Content,without generating HTML

Where are you doing your code parsing? If you’re doing it directly in the template file, inside the Loop, then you should be using get_the_content(). However, it might be more efficient to filter the_content(), via the the_content filter. e.g. in functions.php: function mytheme_filter_the_content( $content ) { // add code here to filter the_content // which … Read more

How can I have two content titles?

Strictly speaking title is column in posts database table so it is not easy (or makes sense) to add one more title. But it is trivial to emulate by using custom field to store additional title (or anything else).

Overriding the currently selected menu item

Since I assume you’re using wp_nav_menu(), there should be a class current_page_parent which is applied to your posts’ page menu item when viewing a single post. You can use this class to style the ‘active’ state, much like you’re probably doing with current_page_item at the moment. If (for whatever reason) you must have current_page_item added … Read more

Clean URL link for page without number

This is because your site already has a post or page (6 in your case) with the slug “photo.” They might be in the trash, or pending as drafts, or whatever … but WordPress automatically appends number to prevent name conflicts. So go through your site, and figure out which other pages are trying to … Read more

How to create a metabox that will list all my pages in a dropdown selector?

You can use wp_dropdown_pages. For example add_action( ‘add_meta_boxes’, ‘myplugin_add_custom_box’ ); /* Adds a box to the main column on the Post edit screens */ function myplugin_add_custom_box() { add_meta_box( ‘myplugin_sectionid’, __( ‘My Post Section Title’, ‘myplugin_textdomain’ ), ‘myplugin_inner_custom_box’, ‘post’ ); } /* Prints the box content */ function myplugin_inner_custom_box( $post ) { $dropdown_args = array( ‘post_type’ … Read more

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