Tag Info

New answers tagged

0

Here's an alternative way with array_chunk() if you don't want to mess with modulus: global $post; $words = array( 'One', 'Two', 'Three', 'Four' ); $args = array( 'posts_per_page' => 12, 'post_type' => 'custom_ob' ); $chunks = array_chunk( get_posts( $args ), $cols = 3 ); // Modify this to your needs. foreach( $chunks as $key => $chunk ) { ...


0

<?php $counts = array( '', 'One', 'Two', 'Three', 'Four', ); $query = new WP_Query( array( 'post_type' => 'custom_job', 'posts_per_page' => 12, ) ); while ( $query->have_posts() ) : $query->the_post(); if ( $query->current_post + 1 == $query->post_count || ( ...


2

You can use the variable $current_post, something like this. <?php $query = new WP_Query(array( 'post_type' => 'custom_job', 'showposts' => 12 ) ); ?> <?php while ($query->have_posts()) : $query->the_post(); ?> <?php if ...


0

There is a item over these select boxes. In you css file search for element.style and remove it's position: relative; property. element.style { bottom: 0; left: 0; position: relative; top: auto; } That will fix this issue.


1

I was able to resolve it by deleting the sentence and retyping it. The issue did not replicate. My best thought was that the import user imported text via Word.


1

It looks like your custom font is missing for this char. Try use "eraser" tool in editor to format styles for this text.


-1

I figured it out. I needed to give the a max height and that fixed the problem right away.


1

You're not adding HTML code to your file, you're adding invalid PHP. To recap, in PHP everything between <?php and ?> is PHP code. So this is valid PHP: <?php echo 'hello world';! ?> This is also valid: <b><?php echo 'hello world'; ?></b> This is not valid: <?php <b> echo 'hello world'; </b> ?> Why? ...


2

You are including HTML elements without closing the php tags. Also, the last one should be endif, not endwhile. <?php if (have_posts()) : ?> <ul> <?php // Start the Loop. while (have_posts()) : the_post(); /* * Include the post format-specific template for the content. If you want to ...


1

The "Text" editor is not an HTML editor. If you want to be able to edit raw HTML you will need to use some other editor, but that will probably limit your ability to use the visual editor for the content edited with it. The plugin you mentioned seems like good compromise. The other alternative is to write your own shortcodes for whatever you need to be done. ...


2

As for a function like wp_nav_menu, it is very well documented in the codex as you can see from the link. Some functions are very well documented, others not that well. You can do the following Start at the codex. You'll find (almost) every native function that Wordpress uses in the codex. Like I said, some well documented, some not, and one or two non ...



Top 50 recent answers are included