Tag Info

Hot answers tagged

1

As I previously said in a comment You are using invalid values in get_previous_post() and get_next_post(). You are better of here writing your own function I came up with the following. : Get an array of all the posts and determine the current post's position. Get the post ID's of the posts on both sides of the current post. The amount of ID's ...


1

You are missing a link. The posts are not assigned to the menus directly. There is a post type nav_menu_item in nav_menu taxonomy which links posts (or other kinds of destinations) to their place in menu. This snippet should get you started on retrieval: $menu_items = get_posts( [ 'post_type' => 'nav_menu_item', 'meta_query' => [ [ ...


1

I'm not sure if this is going to solve your whole issue, but you can add the paged parameter to your current custom query. I don't know why you have set the offset parameter. If your offset is 0, omit it completely Also, remember to reset your post data after your custom query. Try something like this as a start and then work from there <?php $paged = ...


1

I believe, most obvious choice would be to create two categories "Fall-Winter" and "Spring-Summer" and put four other categories in both of them. Your URLs would be like this /category/fall-winter /category/fall-winter/formal-wear /category/fall-winter/night-wear Now, to list the formal wear for both fall-winter and spring-summer on page, we have few ...


1

Seems to be good old-fashioned css-problem: The top level li is 93 px high (by the link in it: 38px padding top, 16px line-height, 39px padding-bottom), the sub-navigation starts at top: 96px. Now for the backgrounds of your problem: The subnavigation is shown while your mouse hovers over the li (or something within the li). While you move your mouse from ...



Only top voted, non community-wiki answers of a minimum length are eligible