Site-wide tabs at WordPress website?

Depends on where you want it, but the first thing that comes to mind is to simply add it in either header.php or footer.php in your theme. This is especially simple if the content won’t change often – just add the code to your theme files. If it’s content you want to change often, then … Read more

How to get related posts and wp comments under tabs

You need to use do_shortcode() for the shortcode to actually work inside PHP function add_post_content($content) { if(!is_feed() && !is_home()) { $above=”<p></p>”; $content_of_first_tab = ‘A list of related posts ‘; $args= array( ‘number’ => ‘5’, ‘post_id’ => get_the_ID(), // use post_id, not post_ID. ); $comments = get_comments( $args ); $output=””; foreach ( $comments as $comment ) … Read more

Retrieve posts inside foundation tabs and tab-content split by 3 per row

I managed to ‘solve’ the problem with the code below. It’s not a pretty solution but it does the job. Any adjustments to the code to make it more pretty are welcome. <?php /* Template Name: Page information */ get_header(); ?> <div class=”row”> <div class=”main-wrap” role=”main”> <?php do_action( ‘foundationpress_before_content’ ); ?> <div class=”row”> <div class=”column”><a … Read more

Click on image to open Text

You can certainly do things like this easily via CSS. However, to know what options are available in WordPress, perhaps you can provide a bit more details on how you’d like it to work… can you provide a screenshot (use PowerPoint or a Google Drive Drawing) to make an outline if necessary. Here’s an example … Read more

Display all posts from specific category

In your query post, I don’t see your post type parameter. You must need this parameter to get all posts. Please try this follow the code and put it anywhere you want to show it. <?php $post_args = array( ‘post_type’ => ‘post’, //get post by ‘post’ (default post type). ‘posts_per_page’ => -1, //show all posts. … Read more

Custom slugs for Each Tab

Probably some javascript that’s capturing the click which you will need to find and turn off, changing the anchor tags href to your links once the js has been fixed should make the tabs go to the correct page rather then opening a normal tab and work like allmovie.