0
votes
0answers
13 views

Add class to link surrounding avatar

I need to adjust styling of the -tag surrounding each avatar on my page. It's easy to add a class to the avatar img itself with this code: add_filter( 'bp_core_avatar_class', ...
0
votes
0answers
6 views

Pull individual Topic Tags in bbpress

I have added this code below in bbpress/form-topic.php, to show the topic tags as a tag cloud: <?php echo do_shortcode('[bbp-topic-tags]'); ?> I want to individually pull the topic tags so I ...
6
votes
7answers
4k views

WordPress Plug-in Development In MVC Architecture, How?

I think, the wordpress plug-in architecture is not MVC. So I want to use/do the MVC architecture in WordPress plug-in development (like cakephp, codeIgniter ). How can I use them in plguin ...
1
vote
5answers
523 views

Pagination for blog posts reloading same page

Symptoms Visiting /blog/ loads the first 10 posts, as expected. Visiting /blog/page/2/ (and onward) loads the new URL but with the same 10 posts. Nothing changes but the URL. Setup Details Custom ...
0
votes
1answer
24 views

How to get the current user post and it's ID?

I have a site setup so users can publish a post via the frontend, what happens is, there post is posted as a status, 'Pending Review, in a custom post type. How can i get the post ID for this ...
0
votes
1answer
58 views

How do you get all the urls of images attached to a post?

I've searched high and low and can't seem to get it. I'm trying to output an XML feed with all the images attached to a post from a custom post type: </BasicDetails> <Pictures> ...
4
votes
6answers
9k views

Get the current page URL (including pagination)

Is there a WP function to automatically get the correct URL of the current page? Meaning if I just opened a single post, the function returns the same as get_permalink(), but if I'm on a paginated ...
0
votes
2answers
18 views

Use wp-load() and wp_head() to render a page's header outside of WordPress

I use wp-load() to load the basic WP environment and then read some info from the DB without any problem. But now i need to render the full header for a page, including the Yoast SEO plugin. After ...
0
votes
1answer
438 views

Creating wordpress user registration form

I am having a form page called Test Form with this form : <div id="container"> <form action="wp-content/themes/max-magazine/TestForm.php" method="post" name="myForm"> User <input ...
1
vote
3answers
654 views

How to use the_posts_navigation for wp_query and get_posts?

WordPress have the_posts_navigation function since 4.1.0. But I don't know how to use with wp_query or get_posts. the following code is in a template file of page.wp_query method: <?php if ...
0
votes
1answer
5 views

get_theme_mod returning no output

I can't work out why this isn't displaying anything. The option appears in the appearance - customise menu, I input my settings and display using:- <?php get_theme_mod( 'twitter' ); ?> <?php ...
0
votes
0answers
16 views

%author% permalink for woocommerce

I have a multi-vendor website. I need to have the products permalinks set to, something like this: /author/product or /vendor/product Wordpress already has inbuilt code for /%author%/ but sadly this ...
0
votes
1answer
14 views

How can make cache for my site

I need to make cache in my site and show it like:- <link rel="stylesheet" href="http://www.entrprnrshp.com/wp-content/cache/min/1/a3c1ca7fb903fcd77b2050eb5f1a1e3c.css" data-minify="1"/><link ...
0
votes
1answer
15 views

My post excerpt does not work

I'm using the excerpt for post but when I click on the read more link it does not show me all post paragraph and it show me only the paragraph excerpted and this the code line index.php <?php if ( ...
0
votes
0answers
60 views

Taxonomy for custom post type not found

I'm trying to use taxonomies to create categories for my custom post type. I registered the necessary components: add_action( 'init', 'create_post_type' ); function create_post_type() { ...
0
votes
2answers
1k views

How can I make Disqus comments not show up on pages?

I use Disqus to manage my comments. I'd like it to appear only on posts, and not on pages. How can I do that? If there's a way to selectively show it on some pages that'd be great, but in general ...
0
votes
1answer
10 views

Registration form not registering First and Last name

I'm creating a custom registration form which works using username and email inputs, but when I include First and Last name fields it won't let me register. Here is the form: <form ...
9
votes
7answers
16k views

How do I get the avatar URL instead of an HTML IMG tag when using get_avatar?

I'm using a plugin called Simple Local Avatars which lets me upload author images which are stored on my server locally (no Gravatar). The plugin works fine and get_avatar returns the local avatar. ...
0
votes
1answer
968 views

Redirect users to a front end wp login page

My theme allows me to create a front-end login form in a normal blog page. Now, I wish to redirect all the users to that page and not to wp-login.php. I have used the below code snippet. function ...
0
votes
0answers
13 views

Domain change question

Please help me with this situation. Now I have a site called "abc.com" with pages and blog (many articles). Permalinks is set as abc.com/%postname%/ And I am planning to move just the blog ...
0
votes
1answer
19 views

Using esc_attr_e

From what I understand esc_attr_e is ideally used for escaping values in attributes - Is it right that the usage of esc_attr_e can also be worked in with non attribute values, such as the h3 and label ...
0
votes
1answer
11 views

Different read-more link for each custom post type

Trying to make a custom 'read more' link for different custom post types. Tried this code but does not work as expected. Fairly certain the if/else logic is amiss. Using a Genesis theme if that ...
0
votes
2answers
450 views

Wordpress changing single quotes to double quotes in title and content

My wordpress site has this annoying problem: it converts the single quotes (e.g. it's) into double quotes (it"s) and it looks bad. For example, look at the title of this post. I have searched long ...
2
votes
0answers
32 views

AJAX only works when I'm logged as Admin

I want to make an AJAX request on every select value change to update the real value from database. I'm coding inside a shortcode on functions.php. I have a select element like this one below, echo ...
0
votes
1answer
11 views

Non-permalink custom taxonomy not found

I'm posting this as I found the problem, but it took me ages to find it with the mass of 'Refresh your permalinks' answers. <?php add_action( 'init', 'mytheme_create_post_type' ); function ...
2
votes
1answer
636 views

Admin Area Custom Type Search By Meta Fields Without Title & Content

I have a custom post type that uses several meta fields. In the admin area I would like to be able to search by those meta fields. I have implemented this currently in my functions.php with this code: ...
0
votes
1answer
23 views

Images causing Mixed Content with SSL

I'm trying to use SSL on my login pages but I have some images on this page and it also looks like it's loading a google font api so it's not saying the page is secure. I tried to force SSL using: ...
0
votes
2answers
380 views

Underscores.me retrieve next / previous post thumbnail in post_nav function

I am using Underscores.me for a project. I'd like to add the featured image (thumbnail) to the previous / next post links. They have a function which I'm trying to edit called THEMENAME_post_nav(). I ...
0
votes
1answer
44 views

Best Way to get facebook share count and update using wp_schedule_event or any other method

I recently developed a news blog, and my client needs facebook share count. I Successfully able to get the share count and update the custom field using below code.(with the help of cybermeta). What ...
0
votes
1answer
425 views

Caching-Plugins and Ajax-Page-Parts

I'd love to use »W3 Total Cache« for my Wordpress page. Caching the full page is really fasten up the site. But there is a lot of current community activity and most pages including some "latest ...
0
votes
1answer
311 views

Query set using tax_query with relation 'OR' modifies category object?

(Update: Please see the edits far below.) The code: function itsme_better_editions( $query ) { if ( $query->is_category() && $query->is_main_query() ) { $query->set( ...
0
votes
0answers
16 views

How to modify twentytwelve sidebar in a child theme

I'm trying to modify the sidebars of the twentytwelve theme in my child theme. So far, I've added this to the child theme's functions.php file but all pages are now blank. remove_action( ...
0
votes
0answers
11 views

Filter meta data for simple and variable products on custom query

I have a custom query loop on a page using WP_Query and I want to filter by certain meta keys _price, _weight, _width, _height, _length, total_sales. I am able to get this working with both simple ...
0
votes
0answers
7 views

Combine WP_Query results with new WPDB->get_results Query

Is it possible to combine results from a WP_Query array with results from a new WPDB get_results() and use the loop to loop through the results? Essentially, I am trying to modify a shortcode that ...
2
votes
2answers
352 views

Wordpress image resizing on home page (product category)

I have been working on resizing the images on my wordpress website, the images are not appearing on equal sizes or not aligning properly. But inside the product pages it looks normal size but in the ...
0
votes
0answers
12 views

Disabling and enabling content using Customizer

I have a form at the bottom of my Wordpress theme that I want to give the user the ability to disable. I'm not sure if I should install it as a custom plugin or create a section within the Wordpress ...
1
vote
0answers
13 views

Display message on homepage when new user account is activated

When a new user registers on Wordpress an activation link is sent out to their email address. When the user clicks on this link they are directed to my homepage and their account is activated. At ...
3
votes
2answers
22 views

How to tell if a plugin is multisite compatible?

As a WordPress admin newbie, I just went through my first non-automatic WordPress upgrade. I upgraded five different WordPress installs from 4.1.3 to 4.2. They all refer to different web sites ...
0
votes
1answer
16 views

Custom Behavior when Adding New Custom Post Type in Dashboard

I have a Custom Post Type that I'm doing some custom work for. I want to attach some custom functionality to the post type once it's created but an admin can only trigger the custom action from the ...
0
votes
2answers
2k views

How can i show all categories using wp query?

<?php $recent = new WP_Query(); ?> <?php $recent->query('cat=1&showposts=2'); ?> With what can i replace cat=1 to show posts from all the categories?
1
vote
3answers
2k views

the_excerpt and shortcodes

I'm using the_excerpt on my index page. I'm also using a dropcap shortcode at the beginning of each of my posts. On the index page the posts will not display the letter with the dropcap shortcode ...
0
votes
0answers
4 views

How can I remove navigation menu tree on every page?

This has been bothering me for awhile. Is there a way I can remove the page tree (Home > foo > bar) that shows up on every page on my website? It isn't useful for my site and is just clutter. See the ...
0
votes
3answers
38 views

How to intercept update_option() before it saves data?

I am working with redux framework and need to save theme option values to a file right before it is saved in DB. Is there a way to intercept update_option() right before it saves data in DB?
1
vote
2answers
529 views

Importing wordpress. xml file on new installation

I am trying to move a wordpress installation to a new server. I usualy create a new database using phpmyadmin on the new server, import the sql file from the old server, then install wordpress but ...
-1
votes
1answer
10 views

Multiple instances of Redux WP Framework

Is it possible to have multiple instances of Redux WP framework? Not subpages, i need multiple separate instances since 10+ subpages with tons of options is really really slow.
0
votes
1answer
13 views

WP_Query function for custom post type

I've got a CPT for random homepage banner images (so we can test different images and call to action language). I've got a custom field for the post type that accepts a specific ID for each banner so ...
0
votes
3answers
2k views

get_categories only getting categories in the main language

I am trying to retrieve in the "content composer" the categories of projects based on the active language. But i only get the categories off the main language, never on the other. My code is: ...
1
vote
1answer
12 views

Add before_content and after_content to register_sidebar

Is there any way to add two new functions, before_content and after_content to the register_sidebar function? These would work like before_title and after_title, except it would wrap everything that ...
0
votes
1answer
13 views

How to make WordPress emails async

I recently had an issue on my site where emails were failing to send. That was a problem, but the bigger problem was that the failure caused the script to timeout which really put a damper on the user ...
0
votes
0answers
16 views

I reinstalled a theme and it's not working

I uninstalled a theme called Uber and Uber child by deleting the theme folder as instructed here. I reinstalled it via WordPress with the the zipped version of the same folder (as I did when I first ...

15 30 50 per page